[Top][All Lists]

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

Re: append, push, and add-to-list.

From: Emanuel Berg
Subject: Re: append, push, and add-to-list.
Date: Mon, 05 Jul 2021 20:18:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> I think I'll change them to `(,@())

Backquote is a Lisp macro tho.

Love the docstring BTW: [I fixed the align for the purpose of
this message]

  For example:

  b          => (ba bb bc)       ; assume b has this value
  `(a b c)   => (a b c)          ; backquote acts like quote
  `(a ,b c)  => (a (ba bb bc) c) ; insert the value of b
  `(a ,@b c) => (a ba bb bc c)  ; splice in the value of b

"For example" - isn't that exactly, and all, it does?

OK, well, ,b can be _evaluated_ as well, not just inserted as
a value, I guess, that's what they mean?

  `(1 2 ,(format "%s %s!" "Sail" "Ho") 4) => (1 2 "Sail Ho!" 4)

underground experts united

reply via email to

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