Header menu logo FSharp.Data.Adaptive

HashMap Module

Functional programming operators related to the HashMap<_,_> type.

Functions and values

Function or value Description

applyDelta l r

Full Usage: applyDelta l r

Parameters:
Returns: HashMap<'K, 'V> * HashMapDelta<'K, 'V>
l : HashMap<'K, 'V>
r : HashMapDelta<'K, 'V>
Returns: HashMap<'K, 'V> * HashMapDelta<'K, 'V>

computeDelta l r

Full Usage: computeDelta l r

Parameters:
Returns: HashMapDelta<'A, 'B>

Determines the operations needed to transform l into r. Returns a HashMapDelta containing all the needed operations.

l : HashMap<'A, 'B>
r : HashMap<'A, 'B>
Returns: HashMapDelta<'A, 'B>

computeDeltaCustom add remove update l r

Full Usage: computeDeltaCustom add remove update l r

Parameters:
Returns: HashMapDelta<'A, 'B>

Determines the operations needed to transform l into r, using custom element operation functions. Returns a HashMapDelta containing all the needed operations.

add : 'A -> 'B -> ValueOption<ElementOperation<'B>>
remove : 'A -> 'B -> ValueOption<ElementOperation<'B>>
update : 'A -> 'B -> 'B -> ValueOption<ElementOperation<'B>>
l : HashMap<'A, 'B>
r : HashMap<'A, 'B>
Returns: HashMapDelta<'A, 'B>

Type something to start searching.