1
Fork 0
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:
jgart 2022-08-09 21:44:02 -05:00 committed by Daniel Llorens
parent 56b1ea9002
commit c746586de3

View file

@ -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}.