* doc srfi-1 partition
@ 2003-12-06 21:14 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-12-06 21:14 UTC (permalink / raw)
* srfi-modules.texi (SRFI-1 Filtering and Partitioning): For partition
and partition!, emphasise the multi-value return, note partition may
share a tail with the given list.
- Scheme Procedure: partition pred lst
- Scheme Procedure: partition! pred lst
Split LST into those elements which do and don't satisfy the
predicate PRED.
The return is two values (*note Multiple Values::), the first
being a list of all elements from LST which satisfy PRED, the
second a list of those which do not.
The elements in the result lists are in the same order as in LST.
The order in which the calls `(PRED elem)' are made on the list
elements is not specified.
`partition' does not change LST, but one of the returned lists may
share a tail with it. `partition!' may modify LST to construct
its return.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-06 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-06 21:14 doc srfi-1 partition Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).