[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: common-lisp@sail.stanford.edu
- Subject:
- From: "Timothy P. Daly" <DALY@ibm.com>
- Date: Wed, 04 Feb 1987 17:08:00 -0000
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