Assoc

(assoc argument list) -> pair or #f

Takes each pair found in the list and checks to see if the car of the pair and object are equal?. Upon the first instance of finding "true", it exits the function and returns the pair where this was true.

If no true result is found for any pair, returns #f.

Example:

>> (assoc "a" '(("a" 1) ("b" 2) ("c" 3)))
:: ("a" 1)