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

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

Re: Elisp - quoting or not?


From: An Liu
Subject: Re: Elisp - quoting or not?
Date: Sat, 5 Dec 2020 07:12:02 +0100

Hi,
is it what you want?

(setq ab '("a". "b")
         cd '("c". "d")
          abcd `(ab cd))


On Sat, Dec 5, 2020 at 6:16 AM David Masterson <dsmasterson92630@outlook.com>
wrote:

> I give up -- what's the proper way of doing this?
>
> (setq ab '("a" . "b")
>       cd '("c" . "d")
>       abcd '(ab cd))
>
> What I want is a result for abcd to be '(("a" . "b") ("c" . "d")). I
> imagine I need to use cons/car/cdr, but I'm not sure how.
>
> --
> David Masterson
>
>

-- 
Liu An


reply via email to

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