assoc

Mit assoc können Symbol-Wert-Paare aus einer Assoziationsliste anhand des Symbols gefunden werden.

> (setq alist (quote ((eins 1 one) (zwei 2 two) (drei 3))))
((eins 1 one) (zwei 2 two) (drei 3))

> (assoc (quote zwei) alist)
(zwei 2 two)

> (assoc (quote vier) alist)
nil