GNU bug report logs -
#57098
[PATCH] doc: Add car+cdr example
Previous Next
Reported by: jgart <jgart <at> dismail.de>
Date: Wed, 10 Aug 2022 02:45:01 UTC
Severity: normal
Tags: patch
Done: lloda <lloda <at> sarc.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
---
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
This bug report was last modified 3 years and 11 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.