assoc

(assoc obj alst)


Description:

Finds the pair who's car is equal? to obj.


Arguments:

           alst -- an associative list

            obj -- a scheme object


Returns: the pair who's car is equal? to obj or #f.


Related: assq assv acons 


Examples:

(assoc 4 '((4 . "four") (5 . "five"))) => (4 . "four")



Back to index