FSharpAux


MultiMap

Namespace: FSharpAux

A MultiMap is a special case of a map where value is a list of values

Nested types and modules

TypeDescription
MultiMap<'key, 'value>

Type abreviation for Map<'key,'value list>

Functions and values

Function or valueDescription
add(key, value) map
Signature: (key:'?8568 * value:'?8569) -> map:Map<'?8568,'?8569 list> -> Map<'?8568,'?8569 list>
Type parameters: '?8568, '?8569

Returns a new MultiMap with binding added

emptyMultiMap
Signature: MultiMap<'key,'value>
Type parameters: 'key, 'value

Empty formula

ofSeq(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

tryFind key map
Signature: key:'?8571 -> map:Map<'?8571,'?8572> -> '?8572 option
Type parameters: '?8571, '?8572

Lookup anb element in the map, returning a Some value list if the value is in the domain of the MultiMap else None

Fork me on GitHub