assq


assq(x, xys)
      

Return the first element from the association list xys whose head is equivalent to x. Return false if the element is not found.

An association list is a proper list whose elements are pairs of the form key:value.

The equivalence test for assq is is_eq.

Examples:


assq('b, ['a:1, 'b:2, 'c:3])
// b:2
      

Also see:

assoc
assv
assp


Core Module Index | Contents