Immutable maps based on binary trees, where keys are ordered by F# generic comparison. By default comparison is the F# structural comparison function or uses implementations of the IComparable interface on key values.
See the Map module for further operations on maps. All members of this class are thread-safe and may be used concurrently from multiple threads.
Constructor | Description |
|
Example
|
Instance member | Description | ||
![]() ![]() ![]() ![]() ![]() ![]() Returns a new map with the binding added to the given map. If a binding with the given key already exists in the input map, the existing binding is replaced by the new binding in the result map.
Example
|
|||
|
Example
|
||
Full Usage:
this.ContainsKey
Parameters:
'Key
-
The input key.
Returns: bool
True if the map contains the given key.
|
Example
|
||
|
Example
|
||
|
Example
|
||
Full Usage:
this.[key]
Parameters:
'Key
-
The input key.
Returns: 'Value
The value mapped to the key.
|
Example
|
||
|
Example
|
||
Full Usage:
this.Remove
Parameters:
'Key
-
The input key.
Returns: Map<'Key, 'Value>
The resulting map.
|
![]() ![]() ![]() ![]() ![]() ![]() Removes an element from the domain of the map. No exception is raised if the element is not present.
Example
|
||
Full Usage:
this.TryFind
Parameters:
'Key
-
The input key.
Returns: 'Value option
The mapped value, or None if the key is not in the map.
|
![]() ![]() ![]() ![]() ![]() ![]()
Lookup an element in the map, returning a
Example
|
||
|
![]() ![]() ![]() ![]() ![]() ![]()
Lookup an element in the map, assigning to
Example
|
||
|
![]() ![]() ![]() ![]() ![]() ![]() All the values in the map, including the duplicates. The sequence will be ordered by the keys of the map.
Example
|