[Lispweb] IMHO: popup-list
mdanish@andrew.cmu.edu
mdanish at andrew.cmu.edu
Tue Feb 26 15:44:51 CST 2002
On Tue, Feb 26, 2002 at 12:08:43PM -0500, Marco Antoniotti wrote:
> >
> > Code, of course =)
> >
> > I've always used a-lists of the form
> >
> > ((:item-1 "Item 1") (:item-2 "Item 2") ...)
> >
> > and never had trouble with it. Your example a-list doesn't look like one,
> > btw.
>
> Please note that your example of an a-list is also somewhat
> misleading.
True, it's not a canonical example by far, just an example of what works
with popup-lists.
>
> cl-prompt> (defvar *al* '((:item-1 "Item 1") (:item-2 "Item 2")))
> *AL*
> cl-prompt> (assoc :item-2 *al* :test #'eq)
> ("Item 1")
You mean (:ITEM-2 "Item 2")
--
; Matthew Danish <mdanish at andrew.cmu.edu>
; OpenPGP public key: C24B6010 on keyring.debian.org
; Signed or encrypted mail welcome.
; "There is no dark side of the moon really; matter of fact, it's all dark."
More information about the lispweb
mailing list