[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making a list of lists
From: |
Sebastian Miele |
Subject: |
Re: Making a list of lists |
Date: |
Mon, 03 Jul 2023 18:24:33 +0200 |
> 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.
- Making a list of lists, uzibalqa, 2023/07/03
- Re: Making a list of lists,
Sebastian Miele <=
- Re: Making a list of lists, Sebastian Miele, 2023/07/03
- Re: Making a list of lists, uzibalqa, 2023/07/03
- Re: Making a list of lists, Sebastian Miele, 2023/07/03
- Re: Making a list of lists, uzibalqa, 2023/07/03
- Re: Making a list of lists, Sebastian Miele, 2023/07/03
- Re: Making a list of lists, uzibalqa, 2023/07/03
- Re: Making a list of lists, uzibalqa, 2023/07/03