Header menu logo Dicts

Dicts Namespace

Type/Module Description

DefaultDict<'K, 'V>

A Collections.Generic.Dictionary<'K,'V> with default Values that get created upon accessing a missing key. If accessing a non exiting key , the default function is called to create and set it. Inspired by the defaultdict in Python. If you need to provide a custom implementation of the default function depending on each key, then use the Dict<'K,'V> type and it's method Dicts.getOrSetDefault func key.

Dict<'K, 'V>

A thin wrapper over Collections.Generic.Dictionary<'K,'V> with nicer Error messages on accessing missing keys.

ExtensionsIDictionary

Provides Extensions for IDictionary<'K,'V> interface. Such as Items as key value tuples , Pop(key) or GetValue with nicer error message)

Type something to start searching.