[alexandria-devel] Re: remove-from-plist argument order

Tobias C. Rittweiler tcr at freebits.de
Sat Dec 22 10:43:54 UTC 2007


"Nikodemus Siivola" <nikodemus at random-state.net> writes:

> What we have is
>
>  function REMOVE-FROM-PLIST plist &rest key
>
> What I think we should have is
>
>  function REMOVE-FROM-PLIST keys plist &key test key
>
>  function SANS plist &rest keys

FWIW, I like this except that I think R-F-P shouldn't take a list of
keys but only one key just like REMOVE does. 

You can always get at the multiple keys behaviour by passing an
appropriate :TEST predicate:

  (remove-from-plist '(:foo :bar) *plist* :test (flip #'member))

  -T.




More information about the alexandria-devel mailing list