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 reverse! newtail Date: Mon, 08 Sep 2003 08:40:11 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87llt0te7o.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 1062974955 2649 80.91.224.253 (7 Sep 2003 22:49:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2003 22:49:15 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 08 00:49:14 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 19w8LJ-0001NB-00 for ; Mon, 08 Sep 2003 00:49:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19w8Kl-0001Ic-G8 for guile-devel@m.gmane.org; Sun, 07 Sep 2003 18:48:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19w8Gl-0000Fx-9T for guile-devel@gnu.org; Sun, 07 Sep 2003 18:44:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19w8Gi-0000F1-DB for guile-devel@gnu.org; Sun, 07 Sep 2003 18:44:30 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19w8Gh-0000Db-6b for guile-devel@gnu.org; Sun, 07 Sep 2003 18:44:27 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by mx20.gnu.org with esmtp (Exim 4.22) id 19w8Ch-0000nv-Iw for guile-devel@gnu.org; Sun, 07 Sep 2003 18:40:19 -0400 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.4) with ESMTP id h87MeHBt001962 for ; Mon, 8 Sep 2003 08:40:17 +1000 Original-Received: from localhost (ppp81.dyn228.pacific.net.au [203.143.228.81]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h87MclBC017919 for ; Mon, 8 Sep 2003 08:38:47 +1000 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19w8Ca-0000Th-00; Mon, 08 Sep 2003 08:40:12 +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:2757 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2757 * scheme-compound.texi (Append/Reverse): Merge reverse and reverse!, describe newtail parameter for reverse!, remove confusing caveat about head becoming tail for reverse!. (And I think the docstring for reverse! can be modified similarly.) - Scheme Procedure: reverse lst - Scheme Procedure: reverse! lst [newtail] - C Function: scm_reverse (lst) - C Function: scm_reverse_x (lst, newtail) Return a list comprising the elements of LST, in reverse order. `reverse' constructs a new list, `reverse!' modifies LST to construct its return. For `reverse!', the optional NEWTAIL is appended to to the result. NEWTAIL isn't reversed, it simply becomes the list tail. For `scm_reverse_x', NEWTAIL is mandatory, but can be `SCM_EOL' if no further tail is required. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel