• Re: novice: mapcan use?

    From B. Pym@Nobody447095@here-nor-there.org to comp.lang.lisp on Tue Jun 24 13:50:51 2025
    From Newsgroup: comp.lang.lisp

    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)
    --- Synchronet 3.21d-Linux NewsLink 1.2