View Single Post
Old 03-21-2006, 12:48 PM   #9 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
You could make the values of the a-list lists, so that each key references a list
Code:
(defparameter *models* '(fiesta (ford $200 fast) focus (ford $300 slow)))
(getf *models* 'fiesta)
=> (FORD $200 FAST)
(cadr (getf *models* 'fiesta))
=> $200
(caddr (getf *models* 'fiesta))
=> FAST
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote