Searches an association list for an element and returns that association list entry
Supported Platforms: Windows and Mac OS
(assoc element alist)
Type: Integer, Real, or String
Key of an element in an association list.
Type: List
An association list to be searched.
Type: List or nil
The alist entry, if successful. If assoc does not find element as a key in alist, it returns nil.
(setq al '((name box) (width 3) (size 4.7263) (depth 5))) ((NAME BOX) (WIDTH 3) (SIZE 4.7263) (DEPTH 5)) (assoc 'size al) (SIZE 4.7263) (assoc 'weight al) nil