Sujet : Re: novice: mapcan use?
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lispDate : 24. Jun 2025, 14:50:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <103eafo$2204g$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
Pascal Costanza wrote:
Do you understand what nreconc is there for? Have you ever used it?
>
Here's an example:
>
<http://groups.google.com/group/comp.lang.lisp/msg/2520fe9bc7749328>
Yes, I am aware of that example, but I find it too obfuscated. I prefer
this:
(loop for (key value) on plist by #'cddr
unless (member key keys-to-be-removed)
nconc (list key value))
Gauche Scheme
(delete-keywords '(foo bar) '(a 2 foo 77 b 3 bar 88 c 4))
===>
(a 2 b 3 c 4)