From: jgart via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" <bug-guile@gnu.org>
To: 57098@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: bug#57098: [PATCH] doc: Add car+cdr example
Date: Tue, 9 Aug 2022 21:44:02 -0500 [thread overview]
Message-ID: <20220810024402.31467-1-jgart@dismail.de> (raw)
---
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
next reply other threads:[~2022-08-10 2:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 2:44 jgart via Bug reports for GUILE, GNU's Ubiquitous Extension Language [this message]
2022-08-11 16:02 ` bug#57098: patch lloda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220810024402.31467-1-jgart@dismail.de \
--to=bug-guile@gnu.org \
--cc=57098@debbugs.gnu.org \
--cc=jgart@dismail.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).