ListAssoc Module
Functions and values
Function or value |
Description
|
Full Usage:
find f x l
Parameters:
'a -> 'b -> bool
x : 'a
l : ('b * 'c) list
Returns: 'c
|
Treat a list of key-value pairs as a lookup collection. This function looks up a value based on a match from the supplied predicate function.
|
Full Usage:
tryFind f x l
Parameters:
'key -> 'key -> bool
x : 'key
l : ('key * 'value) list
Returns: 'value option
|
Treat a list of key-value pairs as a lookup collection. This function looks up a value based on a match from the supplied predicate function and returns None if value does not exist.
|