opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 10 June 2012 • 9:48PM -0400

Re: Replacement for `aput' from obsolete assoc.el?
by Stephen J. Turnbull

REPLY TO AUTHOR
 
REPLY TO GROUP




Stefan Monnier writes:

> I didn't see much ion their which addresses the issue of setting
> elements in plists (other than plist-put which doesn't seem to be
> significantly better than (push (cons a b) c)).

Multiple pair updates?  As Drew points out, a plist can be treated
like a stack in the same way as an alist.  For lax plists, `nconc'
works, and if you need a true plist, canonicalize-lax-plist is
efficient.

But really, it's a matter of style.


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.