mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
doc: Add car+cdr example
This commit is contained in:
parent
56b1ea9002
commit
c746586de3
1 changed files with 7 additions and 0 deletions
|
@ -405,6 +405,13 @@ These are synonyms for @code{car}, @code{cadr}, @code{caddr}, @dots{}.
|
|||
Return two values, the @sc{car} and the @sc{cdr} of @var{pair}.
|
||||
@end deffn
|
||||
|
||||
@lisp
|
||||
(car+cdr '(0 1 2 3))
|
||||
@result{}
|
||||
0
|
||||
(1 2 3)
|
||||
@end lisp
|
||||
|
||||
@deffn {Scheme Procedure} take lst i
|
||||
@deffnx {Scheme Procedure} take! lst i
|
||||
Return a list containing the first @var{i} elements of @var{lst}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue