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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a list to the beginning of a list of lists


From: Emanuel Berg
Subject: Re: Adding a list to the beginning of a list of lists
Date: Thu, 10 Nov 2022 19:15:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Heime wrote:

> Is this a good way to add a list to the beginning of a list
> of lists

`push' or the backquote.

Also see `cl-pushnew'.

> (setq cbchart (cons '("Test" "" "" "") cbchart))

C-h f push RET

Examples:

(setq c '(2 (3 4) 5))

(setq c `(1 ,@c))

(push 0 c)

(push '(-3 -2 -1) c)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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