help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Structured data in Emacs Lisp


From: PT
Subject: Re: Structured data in Emacs Lisp
Date: Tue, 26 Apr 2005 17:57:45 +0200
User-agent: Opera M2/8.0 (Win32, build 7561)

On Tue, 26 Apr 2005 17:28:48 +0200, Denis Bueno <dbueno@gmail.com> 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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]