assv


assv(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 assv is is_eqv.

Examples:


assv(\b, [\a:1, \b:2, \c:3])
// \b:2
      

Also see:

assq
assp
assoc


Core Module Index | Contents