Extensions for F#'s Map module.
Function or value | Description |
|
The catOptions function takes a map of Options and values and returns a map of all the Some keys and values.
|
|
The catOptions function takes a map of keys and Options and returns a map of all the keys and Some values.
|
|
|
|
|
Full Usage:
Map.findOrDefault key defaultValue map
Parameters:
'T
defaultValue : 'b
map : Map<'T, 'b>
Returns: 'b
|
|
|
insertWith f key defaultValue mpwill insert the pair (key, value)into mpif keydoes not exist in the map. If the key does exist, the function will insert f defaultValue oldValue.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update f k mapupdates the value xat key k(if it is in the map). If f xis None, the element is deleted. If it is Some y, the key is bound to the new value y.
|
|
|
|
|