help-gnu-emacs
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]