Map<'Key, 'Value, 'ComparerTag> Type
Immutable maps. Keys are ordered by construction function specified when creating empty maps or by F# structural comparison if no construction function is specified.Maps based on structural comparison are efficient for small keys. They are not a suitable choice if keys are recursive data structures or require non-structural comparison semantics. Immutable maps. A constraint tag carries information about the class of key-comparers being used.
Instance members
Instance member |
Description
|
Return a new map with the binding added to the given map.
|
|
Full Usage:
this.ContainsKey
Parameters:
'Key
Returns: bool
|
Test is an element is in the domain of the map.
|
Full Usage:
this.Count
Returns: int
|
The number of bindings in the map.
|
Full Usage:
this.Exists
Parameters:
'Key -> 'Value -> bool
Returns: bool
|
Return True if the given predicate returns true for one of the bindings in the map. Always returns false if the map is empty.
|
Full Usage:
this.Filter
Parameters:
'Key -> 'Value -> bool
Returns: Map<'Key, 'Value, 'ComparerTag>
|
Build a new map containing the bindings for which the given predicate returns True.
|
Full Usage:
this.First
Parameters:
'Key -> 'Value -> 'T option
Returns: 'T option
|
Search the map looking for the first element where the given function returns a Some value.
|
Full Usage:
this.Fold
Parameters:
'Key -> 'Value -> 'State -> 'State
arg1 : 'State
Returns: 'State
|
Fold over the bindings in the map.
|
Full Usage:
this.FoldAndMap
Parameters:
'Key -> 'Value -> 'State -> 'T * 'State
arg1 : 'State
Returns: Map<'Key, 'T, 'ComparerTag> * 'State
|
Fold over the bindings in the map.
|
Full Usage:
this.FoldSection
Parameters:
'Key
arg1 : 'Key
arg2 : 'Key -> 'Value -> 'State -> 'State
arg3 : 'State
Returns: 'State
|
Given the start and end points of a key range, Fold over the bindings in the map that are in the range, and the end points are included if present (the range is considered a closed interval).
|
Full Usage:
this.ForAll
Parameters:
'Key -> 'Value -> bool
Returns: bool
|
Return True if the given predicate returns true for all of the bindings in the map. Always returns true if the map is empty.
|
Full Usage:
this.IsEmpty
Returns: bool
|
Return True if there are no bindings in the map.
|
Full Usage:
this[arg1]
Parameters:
'Key
Returns: 'Value
|
Lookup an element in the map. Raise
|
Full Usage:
this.Iterate
Parameters:
'Key -> 'Value -> unit
|
Apply the given function to each binding in the dictionary.
|
Build a new collection whose elements are the results of applying the given function to each of the elements of the collection. The index passed to the function indicates the index of element being transformed.
|
|
|
Build a new collection whose elements are the results of applying the given function to each of the elements of the collection.
|
|
|
|
Remove an element from the domain of the map. No exception is raised if the element is not present.
|
Full Usage:
this.ToArray
Returns: ('Key * 'Value) array
|
The elements of the set as an array.
|
Full Usage:
this.ToList
Returns: ('Key * 'Value) list
|
The elements of the set as a list.
|
Full Usage:
this.TryFind
Parameters:
'Key
Returns: 'Value option
|
Lookup an element in the map, returning a Some value if the element is in the domain of the map and None if not.
|
Static members
Static member |
Description
|
Full Usage:
Map.Create(arg1, arg2)
Parameters:
'ComparerTag
arg1 : ('Key * 'Value) seq
Returns: Map<'Key, 'Value, 'ComparerTag>
|
Build a map that contains the bindings of the given
|
Full Usage:
Map.Empty(arg1)
Parameters:
'ComparerTag
Returns: Map<'Key, 'Value, 'ComparerTag>
|
The empty map, and use the given comparer comparison function for all operations associated with any maps built from this map.
|
Full Usage:
Map.FromList(arg1, arg2)
Parameters:
'ComparerTag
arg1 : ('Key * 'Value) list
Returns: Map<'Key, 'Value, 'ComparerTag>
|
|