From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: doc srfi-1 partition Date: Sun, 07 Dec 2003 07:14:45 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87zne5lkca.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070745613 4619 80.91.224.253 (6 Dec 2003 21:20:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2003 21:20:13 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Dec 06 22:20:10 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASjqT-0004ro-01 for ; Sat, 06 Dec 2003 22:20:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASkmc-0007Fw-Px for guile-devel@m.gmane.org; Sat, 06 Dec 2003 17:20:14 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ASklB-0006dy-W1 for guile-devel@gnu.org; Sat, 06 Dec 2003 17:18:45 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ASkkf-0006I8-LC for guile-devel@gnu.org; Sat, 06 Dec 2003 17:18:44 -0500 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASkke-0006Em-Nd for guile-devel@gnu.org; Sat, 06 Dec 2003 17:18:12 -0500 Original-Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id hB6LGkno007249 for ; Sun, 7 Dec 2003 08:16:46 +1100 Original-Received: from localhost (ppp103.dyn16.pacific.net.au [61.8.16.103]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id hB6LG8xv031863 for ; Sun, 7 Dec 2003 08:16:43 +1100 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 1ASjlH-000811-00; Sun, 07 Dec 2003 07:14:47 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3109 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3109 * 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