Header menu logo FSharp.Data.Adaptive

HashSet Module

Functional programming operators related to the HashSet<_> type.

Functions and values

Function or value Description

addAll set

Full Usage: addAll set

Parameters:
Returns: HashSetDelta<'T>

Same as computeDelta empty set

set : HashSet<'T>
Returns: HashSetDelta<'T>

applyDelta value delta

Full Usage: applyDelta value delta

Parameters:
Returns: HashSet<'T> * HashSetDelta<'T>

Applies the given operations to the set. Returns the new set and the 'effective' operations.

value : HashSet<'T>
delta : HashSetDelta<'T>
Returns: HashSet<'T> * HashSetDelta<'T>

computeDelta l r

Full Usage: computeDelta l r

Parameters:
Returns: HashSetDelta<'T>

Determines the operations needed to transform l into r. Returns a HashSetDelta containing these operations.

l : HashSet<'T>
r : HashSet<'T>
Returns: HashSetDelta<'T>

computeDeltaCustom l r add remove

Full Usage: computeDeltaCustom l r add remove

Parameters:
    l : HashSet<'T>
    r : HashSet<'T>
    add : 'T -> bool
    remove : 'T -> bool

Returns: HashSetDelta<'T>

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

l : HashSet<'T>
r : HashSet<'T>
add : 'T -> bool
remove : 'T -> bool
Returns: HashSetDelta<'T>

removeAll set

Full Usage: removeAll set

Parameters:
Returns: HashSetDelta<'T>

Same as computeDelta set empty

set : HashSet<'T>
Returns: HashSetDelta<'T>

Type something to start searching.