[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] Generalization of append, map, and for-each to other sequences
- To: Alex Shinn <alexshinn@x>
- Subject: Re: [Scheme-reports] Generalization of append, map, and for-each to other sequences
- From: John Cowan <cowan@x>
- Date: Sun, 1 Jul 2012 19:50:18 -0400
- Cc: scheme-reports <scheme-reports@x>
- In-reply-to: <CAMMPzYMz3DM1yJgouKRvXYtJ+e5wqjcDF4JmzO=KNJbpuon8JA@mail.gmail.com>
- References: <80F9871E-BA21-44A0-832B-AD0A6DC10D37@iro.umontreal.ca> <CAMMPzYMz3DM1yJgouKRvXYtJ+e5wqjcDF4JmzO=KNJbpuon8JA@mail.gmail.com>
Alex Shinn scripsit:
> > The procedure
> >
> > (string-append string ...)
> >
> > exists to concatenate strings, like append concatenates lists.
> > However there is no vector-append and bytevector-append which
> > concatenate vectors and bytevectors.
Ballot ticket #444 filed for vector-append (sorry about the noise due to
submitting when I meant to preview).
> > The procedures
> >
> > (string-map proc string1 string2 ...)
> > (vector-map proc vector1 vector2 ...)
> >
> > (string-for-each proc string1 string2 ...)
> > (vector-for-each proc vector1 vector2 ...)
> >
> > are for strings and vectors what map and for-each are for lists.
> > There is no such procedures for bytevectors.
As noted in an earlier message, bytevectors are intentionally second-class
in the small language, as they are intended to be the foundation of
other numeric vectors in the large language. Therefore I am not filing
a ticket for new bytevector procedures.
--
John Cowan http://ccil.org/~cowan cowan@x
Mr. Henry James writes fiction as if it were a painful duty. --Oscar Wilde
The work of Henry James has always seemed divisible by a simple dynastic
arrangement into three reigns: James I, James II, and the Old Pretender.
--Philip Guedalla
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports