[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
Subject: defstruct question
How can I define data structures that are pairs using defstruct?
How can I define data structures that contain pairs? What I want
to say is:
(defstruct (name (:type cons)) a b)
intending to create a thing of the form (name-a . name-b)
how can I name subfields?
(defstruct name (a :type cons :field-names '(kar kdr)))
intending to create a thing like
#((name-a-kar . name-a-kdr))
Tim Daly
DALY@IBM.COM