From: Sebastian Miele <iota@whxvd.name>
To: uzibalqa <uzibalqa@proton.me>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Making a list of lists
Date: Mon, 03 Jul 2023 18:24:33 +0200 [thread overview]
Message-ID: <87jzvhdkkz.fsf@whxvd.name> (raw)
In-Reply-To: <fMivAqpxOKYEwF7upZ3dq2qCamLBbbvZhCrzf1BZfOQmi0K2nIfIaub-x6c8kw5q7LDORf3j0UwzdFw_VgvKr6PEMmvcGyy0QofHeovkoPM=@proton.me>
> From: uzibalqa <uzibalqa@proton.me>
> Date: Mon, 2023-07-03 16:18 +0000
>
> I want to make a list of lists. Suppose I make a list by calling this function
>
> (defun linseq (&rest sequence)
> sequence)
>
> How can then I have a function that adds the list as an element to a list of lists ?
The Emacs Lisp manual contains such information.
`linseq' basically is the built-in `list' function. You could do
(linseq (linseq 'a 'b 'c))
which is equivalent to:
(list (list 'a 'b 'c))
Another possibility is the "backquote construct" (also see the manual).
For example
`(,(list 'a 'b 'c))
has the same result.
next prev parent reply other threads:[~2023-07-03 16:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 16:18 Making a list of lists uzibalqa
2023-07-03 16:24 ` Sebastian Miele [this message]
2023-07-03 16:33 ` Sebastian Miele
2023-07-03 16:40 ` Sebastian Miele
2023-07-03 16:41 ` uzibalqa
2023-07-03 16:44 ` Sebastian Miele
2023-07-03 17:51 ` uzibalqa
2023-07-03 17:56 ` Sebastian Miele
2023-07-03 19:08 ` uzibalqa
2023-07-03 19:28 ` uzibalqa
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/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzvhdkkz.fsf@whxvd.name \
--to=iota@whxvd.name \
--cc=help-gnu-emacs@gnu.org \
--cc=uzibalqa@proton.me \
/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).