Additional operations on IReadOnlyDictionary<'Key, 'Value>
Function or value | Description |
Full Usage:
IReadOnlyDictionary.add key value source
Parameters:
'Key
value : 'Value
source : IReadOnlyDictionary<'Key, 'Value>
Returns: IReadOnlyDictionary<'Key, 'Value>
|
|
Full Usage:
IReadOnlyDictionary.choose chooser source
Parameters:
'Key -> 'T -> 'U option
-
The function to be applied to the read-only dictionary values.
source : IReadOnlyDictionary<'Key, 'T>
-
The input read-only dictionary.
Returns: IReadOnlyDictionary<'Key, 'U>
The resulting read-only dictionary comprising the entries v where the chooser function returned Some(x) .
|
Applies a function to each key and value in a read-only dictionary and then returns
a read-only dictionary of entries
|
Full Usage:
IReadOnlyDictionary.chooseValues chooser source
Parameters:
'T -> 'U option
-
The function to be applied to the read-only dictionary values.
source : IReadOnlyDictionary<'Key, 'T>
-
The input read-only dictionary.
Returns: IReadOnlyDictionary<'Key, 'U>
The resulting read-only dictionary comprising the entries v where the chooser function returned Some(x) .
|
Applies a function to each value in a read-only dictionary and then returns
a read-only dictionary of entries
|
Full Usage:
IReadOnlyDictionary.containsKey key source
Parameters:
'Key
-
The key to find.
source : IReadOnlyDictionary<'Key, 'Value>
-
The input IReadOnlyDictionary.
Returns: bool
A bool indicating if the key was found.
|
Note: this is a function wrapper for the IReadOnlyDictionary.ContainsKey method.
|
|
|
Full Usage:
IReadOnlyDictionary.fold folder state source
Parameters:
'State -> 'Key -> 'T -> 'State
state : 'State
source : IReadOnlyDictionary<'Key, 'T>
Returns: 'State
|
|
Full Usage:
IReadOnlyDictionary.foldBack folder source state
Parameters:
'Key -> 'T -> 'State -> 'State
source : IReadOnlyDictionary<'Key, 'T>
state : 'State
Returns: 'State
|
|
Full Usage:
IReadOnlyDictionary.intersect source1 source2
Parameters:
IReadOnlyDictionary<'Key, 'T>
source2 : IReadOnlyDictionary<'Key, 'T>
Returns: IReadOnlyDictionary<'Key, 'T>
|
|
Full Usage:
IReadOnlyDictionary.intersectWith combiner source1 source2
Parameters:
'T -> 'T -> 'T
source1 : IReadOnlyDictionary<'Key, 'T>
source2 : IReadOnlyDictionary<'Key, 'T>
Returns: IReadOnlyDictionary<'Key, 'T>
|
|
Full Usage:
IReadOnlyDictionary.iter action source
Parameters:
'Key -> 'T -> unit
-
The action to apply.
source : IReadOnlyDictionary<'Key, 'T>
-
The input IReadOnlyDictionary.
|
|
Full Usage:
IReadOnlyDictionary.keys source
Parameters:
IReadOnlyDictionary<'Key, 'Value>
-
The input IReadOnlyDictionary.
Returns: 'Key seq
A seq of the keys in the IReadOnlyDictionary.
|
|
Full Usage:
IReadOnlyDictionary.map2 mapper source1 source2
Parameters:
'T1 -> 'T2 -> 'U
-
The mapping function.
source1 : IReadOnlyDictionary<'Key, 'T1>
-
The first input IReadOnlyDictionary.
source2 : IReadOnlyDictionary<'Key, 'T2>
-
The second input IReadOnlyDictionary.
Returns: IReadOnlyDictionary<'Key, 'U>
The combined IReadOnlyDictionary.
|
Keys that are not present on both read-only dictionaries are dropped.
|
Full Usage:
IReadOnlyDictionary.map3 mapping source1 source2 source3
Parameters:
'T1 -> 'T2 -> 'T3 -> 'U
-
The mapping function.
source1 : IReadOnlyDictionary<'Key, 'T1>
-
First input dictionary.
source2 : IReadOnlyDictionary<'Key, 'T2>
-
Second input dictionary.
source3 : IReadOnlyDictionary<'Key, 'T3>
-
Third input dictionary.
Returns: IReadOnlyDictionary<'Key, 'U>
The mapped IReadOnlyDictionary.
|
Keys that are not present on every dictionary are dropped.
|
Full Usage:
IReadOnlyDictionary.mapValues mapper source
Parameters:
'T -> 'U
-
The mapping function.
source : IReadOnlyDictionary<'Key, 'T>
-
The input IReadOnlyDictionary.
Returns: IReadOnlyDictionary<'Key, 'U>
The mapped IReadOnlyDictionary.
|
|
Full Usage:
IReadOnlyDictionary.mapi mapper source
Parameters:
'Key -> 'T -> 'U
-
The mapping function.
source : IReadOnlyDictionary<'Key, 'T>
-
The input IReadOnlyDictionary.
Returns: IReadOnlyDictionary<'Key, 'U>
The mapped IReadOnlyDictionary.
|
|
Full Usage:
IReadOnlyDictionary.remove key source
Parameters:
'Key
source : IReadOnlyDictionary<'Key, 'Value>
Returns: IReadOnlyDictionary<'Key, 'Value>
|
|
Full Usage:
IReadOnlyDictionary.toResizeArray source
Parameters:
IReadOnlyDictionary<'Key, 'T>
-
The source IReadOnlyDictionary.
Returns: ResizeArray<KeyValuePair<'Key, 'T>>
A ResizeArray containing the Key and Value of the original IReadOnlyDictionary.
|
|
Full Usage:
IReadOnlyDictionary.toSeq source
Parameters:
IReadOnlyDictionary<'Key, 'T>
-
The source IReadOnlyDictionary.
Returns: KeyValuePair<'Key, 'T> seq
A sequence containing the Key and Value of the original IReadOnlyDictionary.
|
|
Full Usage:
IReadOnlyDictionary.tryGetValue key source
Parameters:
'Key
-
The key whose value you wish to find.
source : IReadOnlyDictionary<'Key, 'Value>
-
The input IReadOnlyDictionary.
Returns: 'Value option
An option wrapped value.
|
This is a function wrapper for the IReadOnlyDictionary.TryGetValue method,
representing the result as an Option
|
Full Usage:
IReadOnlyDictionary.union source altSource
Parameters:
IReadOnlyDictionary<'Key, 'T>
altSource : IReadOnlyDictionary<'Key, 'T>
Returns: IReadOnlyDictionary<'Key, 'T>
|
|
Full Usage:
IReadOnlyDictionary.unionWith combiner source1 source2
Parameters:
'Value -> 'Value -> 'Value
source1 : IReadOnlyDictionary<'Key, 'Value>
source2 : IReadOnlyDictionary<'Key, 'Value>
Returns: IReadOnlyDictionary<'Key, 'Value>
|
|
Full Usage:
IReadOnlyDictionary.unzip source
Parameters:
IReadOnlyDictionary<'Key, ('T1 * 'T2)>
-
The source IReadOnlyDictionary.
Returns: IReadOnlyDictionary<'Key, 'T1> * IReadOnlyDictionary<'Key, 'T2>
A tuple of each untupled IReadOnlyDictionary.
|
|
Full Usage:
IReadOnlyDictionary.values source
Parameters:
IReadOnlyDictionary<'Key, 'Value>
-
The input IReadOnlyDictionary.
Returns: 'Value seq
A seq of the values in the read-only dictionary.
|
|
Full Usage:
IReadOnlyDictionary.zip x y
Parameters:
IReadOnlyDictionary<'Key, 'T1>
-
The first input IReadOnlyDictionary.
y : IReadOnlyDictionary<'Key, 'T2>
-
The second input IReadOnlyDictionary.
Returns: IReadOnlyDictionary<'Key, ('T1 * 'T2)>
The tupled IReadOnlyDictionary.
|
Keys that are not present on both read-only dictionaries are dropped.
|