1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-21 04:00:19 +02:00

(SRFI-1 Selectors): In drop-right, note always a

new list.  In take-right, note result shares common tail.  Per spec.
This commit is contained in:
Kevin Ryde 2005-05-03 22:50:21 +00:00
parent 2ac46e5a51
commit 64bf8517e9

View file

@ -361,6 +361,7 @@ Return a list containing all but the first @var{i} elements of
@deffn {Scheme Procedure} take-right lst i
Return the a list containing the @var{i} last elements of @var{lst}.
The return shares a common tail with @var{lst}.
@end deffn
@deffn {Scheme Procedure} drop-right lst i
@ -368,8 +369,9 @@ Return the a list containing the @var{i} last elements of @var{lst}.
Return the a list containing all but the @var{i} last elements of
@var{lst}.
@code{drop-right!} may modify the structure of the argument list
@var{lst} in order to produce the result.
@code{drop-right} always returns a new list, even when @var{i} is
zero. @code{drop-right!} may modify the structure of the argument
list @var{lst} in order to produce the result.
@end deffn
@deffn {Scheme Procedure} split-at lst i