On Tue, 26 Apr 2005 17:28:48 +0200, Denis Bueno <[EMAIL PROTECTED]> wrote:

You could use a plist:

  (:key1 1 :key2 2)

Then to get a particular value:

(getf '(:key1 1 :key2 2) :key1)
=> 1


Nice! I like it better than association lists. Thanks!

So you might need to do (require 'cl) before using it....

I already require 'cl, so it's no problem. I checked Info and getf was listed under the Symbols node, that's why I didn't know about it.


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to