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: Jim Ottaway
Subject: Re: Structured data in Emacs Lisp
Date: Tue, 26 Apr 2005 17:59:32 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>>>>> PT  <mailshield.gg@mailnull.com> writes:

> 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
>> 

Or you could use defstruct [also in 'cl]

-- 
Jim Ottaway




reply via email to

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