[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

doc reverse! newtail

From: Kevin Ryde
Subject: doc reverse! newtail
Date: Mon, 08 Sep 2003 08:40:11 +1000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

        * 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]