FSharpAux


Map

Namespace: FSharpAux
Attributes:
[<AutoOpen>]

Functions and values

Function or valueDescription
compose(data)
Signature: data:seq<'key * 'value> -> Map<'key,'value list>
Type parameters: 'key, 'value

Compose a seq of keyvalue pairs with dublicate keys to a keyvalue list

merge a b f
Signature: a:Map<'a,'b> -> b:Map<'a,'b> -> f:('a -> 'b * 'b -> 'b) -> Map<'a,'b>
Type parameters: 'a, 'b

Merge two maps of the same type f is the function how to handel key conflicts

tryFindDefault a zero key
Signature: a:Map<'key,'value> -> zero:'value -> key:'key -> 'value
Type parameters: 'key, 'value

Look up an element in a map, returning a value if the element is in the domain of the map and default value if not

Fork me on GitHub