Accessing Associations (Cont.)
(match '((* STUFF) is (? NAME))
'(my name is john))
((STUFF MY NAME)(NAME . JOHN)(YES . YES))
(setq result *)
((STUFF MY NAME)(NAME . JOHN)(YES . YES))
(val 'stuff result)
(MY NAME)
(val ’name result)
JOHN
(val 'y result)
NIL
Previous slide
Next slide
Back to first slide
View graphic version