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:
parent
2ac46e5a51
commit
64bf8517e9
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue