Logo Mibo

Dictionary Module

Functions and values

Function or value Description

tryAdd key value dictionary

Full Usage: tryAdd key value dictionary

Parameters:
Returns: bool
Modifiers: inline
Type parameters: 'K, 'V

Add-if-absent; returns true when the key was added.

key : 'K
value : 'V
dictionary : IDictionary<'K, 'V>
Returns: bool

tryGetValue key dictionary

Full Usage: tryGetValue key dictionary

Parameters:
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.

key : 'K
dictionary : IDictionary<'K, 'V>
Returns: 'V voption

Type something to start searching.