HashMultiMap<'Key, 'Value> Type
Hash tables, by default based on F# structural "hash" and (=) functions. The table may map a single key to multiple bindings.
Constructors
Constructor |
Description
|
Full Usage:
HashMultiMap(entries, comparer)
Parameters:
('Key * 'Value) seq
comparer : IEqualityComparer<'Key>
Returns: HashMultiMap<'Key, 'Value>
|
Build a map that contains the bindings of the given IEnumerable.
|
Full Usage:
HashMultiMap(size, comparer)
Parameters:
int
comparer : IEqualityComparer<'Key>
Returns: HashMultiMap<'Key, 'Value>
|
Create a new empty mutable HashMultiMap with an internal bucket array of the given approximate size and with the given key hash/equality functions.
|
Full Usage:
HashMultiMap(comparer)
Parameters:
IEqualityComparer<'Key>
Returns: HashMultiMap<'Key, 'Value>
|
Create a new empty mutable HashMultiMap with the given key hash/equality functions.
|
Instance members
Instance member |
Description
|
Full Usage:
this.Add
Parameters:
'Key
arg1 : 'Value
|
Add a binding for the element to the table.
|
Full Usage:
this.Clear
|
Clear all elements from the collection. |
Full Usage:
this.ContainsKey
Parameters:
'Key
Returns: bool
|
Test if the collection contains any bindings for the given element.
|
|
Make a shallow copy of the collection.
|
Full Usage:
this.Count
Returns: int
|
The total number of keys in the hash table.
|
Full Usage:
this.FindAll
Parameters:
'Key
Returns: 'Value list
|
Find all bindings for the given element in the table, if any.
|
Full Usage:
this.Fold
Parameters:
'Key -> 'Value -> 'State -> 'State
arg1 : 'State
Returns: 'State
|
Apply the given function to each element in the collection threading the accumulating parameter through the sequence of function applications.
|
Full Usage:
this[arg1]
Returns: 'Key
|
Lookup or set the given element in the table. Set replaces all existing bindings for a value with a single
bindings. Raise
|
Full Usage:
this.Iterate
Parameters:
'Key -> 'Value -> unit
|
Apply the given function to each binding in the hash table.
|
Full Usage:
this.Remove
Parameters:
'Key
|
Remove the latest binding if any for the given element from the table.
|
Full Usage:
this.Replace
Parameters:
'Key
arg1 : 'Value
|
Replace the latest binding if any for the given element.
|
Full Usage:
this.TryFind
Parameters:
'Key
Returns: 'Value option
|
Lookup the given element in the table, returning the result as an Option.
|