BidirectionalDictionary<'a, 'b>
Namespace: FSharpAux
The bidirectional dictionary allows effective search of keys and values
Constructors
Constructor | Description |
new()
Signature: unit -> BidirectionalDictionary<'a,'b>
|
Creates a new empty bidirectional dictionary
CompiledName: .ctor
|
Instance members
Instance member | Description |
x.Add key value
Signature: key:'a -> value:'b -> unit
|
Adds a value v to the set of values already associated with key k to the forward dictionary. Adds a value k to the set of values already associated with key v to the reverse dictionary.
|
x.ContainsKey(key)
Signature: key:'a -> bool
|
Returns true if the forward dictionary contains the key k
|
x.ContainsValue(value)
Signature: value:'b -> bool
|
Returns true if the reverse dictionary contains the key k
|
x.GetArrayOfKeys
Signature: 'a []
|
Retuns all keys of the forward dictionary
CompiledName: get_GetArrayOfKeys
|
x.GetArrayOfValues
Signature: 'b []
|
Returns all keys of the reverse dictionary
CompiledName: get_GetArrayOfValues
|
x.RemoveKey(key)
Signature: key:'a -> unit
|
Removes the key key and all values associated to it from forward dictionary. Removes the value key from all keys from reverse dictionary.
|
x.RemoveValue(value)
Signature: value:'b -> unit
|
|
x.TryGetByKey(key)
Signature: key:'a -> seq<'b> option
|
Returns all values of the forward dictionary associated with key k
|
x.TryGetByValue(value)
Signature: value:'b -> seq<'a> option
|
Returns all values of the reverse dictionary associated with key k
|