diff options
author | Kevin Ryde <user42@zip.com.au> | 2005-05-03 22:50:21 +0000 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2005-05-03 22:50:21 +0000 |
commit | 64bf8517e94f634edbcb34b714d602a62863d5db (patch) | |
tree | 607d82840ba81050f862dcaa3b92b78e1a285e18 | |
parent | 2ac46e5a51adc4fde78c4cb2b900dc81a9246f18 (diff) | |
download | guile-64bf8517e94f634edbcb34b714d602a62863d5db.tar.gz |
(SRFI-1 Selectors): In drop-right, note always a
new list. In take-right, note result shares common tail. Per spec.
-rw-r--r-- | doc/ref/srfi-modules.texi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi index a29784d27..0dda78c49 100644 --- a/doc/ref/srfi-modules.texi +++ b/doc/ref/srfi-modules.texi @@ -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 |