Dict<'K, 'V> Type
A thin wrapper over Collections.Generic.Dictionary<'K,'V> with nicer Error messages on accessing missing keys.
Constructors
Constructor | Description |
Full Usage:
Dict(iEqualityComparer)
Parameters:
IEqualityComparer<'K>
Returns: Dict<'K, 'V>
|
|
|
Instance members
Instance member | Description |
Full Usage:
this.Add
Parameters:
'K
value : 'V
|
|
Full Usage:
this.AddIfKeyAbsent
Parameters:
'K
value : 'V
Returns: bool
|
|
Full Usage:
this.AsString
Returns: string
|
|
Full Usage:
this.Clear
|
|
Full Usage:
this.ContainsKey
Parameters:
'K
Returns: bool
|
|
Full Usage:
this.ContainsValue
Parameters:
'V
Returns: bool
|
|
Full Usage:
this.Count
Returns: int
|
|
Full Usage:
this.DoesNotContainKey
Parameters:
'K
Returns: bool
|
|
Full Usage:
this.Get
Parameters:
'K
Returns: 'V
|
|
Full Usage:
this.GetOrSetDefault
Parameters:
'K -> 'V
key : 'K
Returns: 'V
|
|
Full Usage:
this.GetOrSetDefaultValue
Parameters:
'V
key : 'K
Returns: 'V
|
|
|
|
Full Usage:
this.IsEmpty
Returns: bool
|
|
Full Usage:
this.IsNotEmpty
Returns: bool
|
|
Full Usage:
this[k]
Returns: 'K
|
|
Full Usage:
this.Items
Returns: ('K * 'V) seq
|
|
|
|
Full Usage:
this.KeysSeq
Returns: 'K seq
|
|
Full Usage:
this.Pop
Parameters:
'K
Returns: 'V
|
|
Full Usage:
this.Remove
Parameters:
'K
Returns: bool
|
|
Full Usage:
this.Set
Parameters:
'K
value : 'V
|
|
Full Usage:
this.SetIfKeyAbsent
Parameters:
'K
value : 'V
Returns: bool
|
|
Full Usage:
this.ToString
Parameters:
int
Returns: string
|
|
Full Usage:
this.TryGetValue
Parameters:
'K
-
The input key.
refValue : byref<'V>
-
A reference to the output value.
Returns: bool
true if the value is present, false if not.
|
|
|
|
Full Usage:
this.ValuesSeq
Returns: 'V seq
|
Static members
Static member | Description |
|
|
|
|
|
|
|
|