bug#57098: [PATCH] doc: Add car+cdr example
jgart via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" <[email protected]>
| Newsgroups | gmane.lisp.guile.bugs |
|---|---|
| Message-ID | <[email protected]> |
---
doc/ref/srfi-modules.texi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
index 7aeacd888..0ddd9a711 100644
--- a/doc/ref/srfi-modules.texi
+++ b/doc/ref/srfi-modules.texi
@@ -409,6 +409,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}.
--
2.37.1