Name

assoc

Usage

builtin-function

Syntax

(assoc item alist &key key test)

Description

Returns the first Cons item in association list alist with a car matching item.

user 1 > (assoc 'a '((b c) (a d) (e f)))
it: (a d)
user 2 > (assoc 3 '(("bbb" c) ("a" d) ("e" f)) :key length)
it: ("bbb" c)

See also

acons assoc-if pairlis