Aardvark.Base


IDictExtensions

Static members

Static memberDescription
ContainsKey(dict, key)
Signature: (dict:IDict<Symbol,'TValue> * key:TypedSymbol<'TType>) -> bool
Type parameters: 'TType, 'TValue
Get(dict, key)
Signature: (dict:IDict<Symbol,'TValue> * key:TypedSymbol<'TType>) -> 'TType
Type parameters: 'TType, 'TValue
Get(dict, key, defaultValue)
Signature: (dict:IDict<Symbol,'TValue> * key:TypedSymbol<'TType> * defaultValue:'TType) -> 'TType
Type parameters: 'TType, 'TValue
GetOrDefault(dict, key)
Signature: (dict:IDict<Symbol,'TValue> * key:TypedSymbol<'TType>) -> 'TType
Type parameters: 'TType, 'TValue
TryGetValue(dict, key, typedValue)
Signature: (dict:IDict<Symbol,'TValue> * key:TypedSymbol<'TType> * typedValue:byref<'TType>) -> bool
Type parameters: 'TType, 'TValue
WithAdded(dict, key, value)
Signature: (dict:IDict<'TKey,'TValue> * key:'TKey * value:'TValue) -> IDict<'TKey,'TValue>
Type parameters: 'TKey, 'TValue

Returns an IDict with the supplied key/value pair added. Internally the supplied dict is not modified, but referenced, and a suitable DeltaDict is built that contains only the changes.

WithAdded(dict, deltaDict)
Signature: (dict:IDict<'TKey,'TValue> * deltaDict:Dict<'TKey,'TValue>) -> IDict<'TKey,'TValue>
Type parameters: 'TKey, 'TValue

Return an IDict with the supplied Dict added as deltas. Internally the supplied dicts are not modified, but referenced, and a suitable DeltaDict is built.

WithAdded(dict, key, value)
Signature: (dict:IDict<Symbol,'TValue> * key:Symbol * value:'TValue) -> IDict<Symbol,'TValue>
Type parameters: 'TValue

Returns an IDict with the supplied key/value pair added. Internally the supplied dict is not modified, but referenced, and a suitable DeltaDict is built that contains only the changes.

WithAdded(dict, deltaDict)
Signature: (dict:IDict<Symbol,'TValue> * deltaDict:SymbolDict<'TValue>) -> IDict<Symbol,'TValue>
Type parameters: 'TKey, 'TValue

Return an IDict with the supplied Dict added as deltas. Internally the supplied dicts are not modified, but referenced, and a suitable DeltaDict is built.

Fork me on GitHub