Dictionary Module
Functions and values
| Function or value |
Description
|
Full Usage:
tryAdd key value dictionary
Parameters:
'K
value : 'V
dictionary : IDictionary<'K, 'V>
Returns: bool
Modifiers: inline Type parameters: 'K, 'V |
Add-if-absent; returns true when the key was added.
|
Full Usage:
tryGetValue key dictionary
Parameters:
'K
dictionary : IDictionary<'K, 'V>
Returns: 'V voption
Modifiers: inline Type parameters: 'K, 'V |
Zero-allocation lookup — avoids the `bool * 'T` reference tuple that F# allocates for the single-argument `IDictionary.TryGetValue` extension.
|
Mibo