Header menu logo FSharp.Data.Adaptive

HashSetDelta Module

Functional operators for HashSetDelta.

Functions and values

Function or value Description

add value set

Full Usage: add value set

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Adds a SetOperation to the HashSetDelta.

value : SetOperation<'T>
set : HashSetDelta<'T>
Returns: HashSetDelta<'T>

choose f set

Full Usage: choose f set

Parameters:
Returns: HashSetDelta<'T2>
Modifiers: inline
Type parameters: 'T, 'T2

Applies the mapping function to all operations in the set.

f : SetOperation<'T> -> SetOperation<'T2> option
set : HashSetDelta<'T>
Returns: HashSetDelta<'T2>

chooseV f set

Full Usage: chooseV f set

Parameters:
Returns: HashSetDelta<'T2>
Modifiers: inline
Type parameters: 'T, 'T2

Applies the mapping function to all operations in the set.

f : SetOperation<'T> -> SetOperation<'T2> voption
set : HashSetDelta<'T>
Returns: HashSetDelta<'T2>

collect f set

Full Usage: collect f set

Parameters:
Returns: HashSetDelta<'T2>
Modifiers: inline
Type parameters: 'T, 'T2

Applies the mapping function to all operations in the set and combines all the results.

f : SetOperation<'T> -> HashSetDelta<'T2>
set : HashSetDelta<'T>
Returns: HashSetDelta<'T2>

combine l r

Full Usage: combine l r

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Combines two DHashSets to one using a reference counting implementation.

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

count set

Full Usage: count set

Parameters:
Returns: int
Modifiers: inline
Type parameters: 'T

The number of operations contained in the HashSetDelta.

set : HashSetDelta<'T>
Returns: int

empty

Full Usage: empty

Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

The empty set.

Returns: HashSetDelta<'T>

exists predicate set

Full Usage: exists predicate set

Parameters:
Returns: bool
Modifiers: inline
Type parameters: 'T

Checks whether an entry fulfilling the predicate exists.

predicate : SetOperation<'T> -> bool
set : HashSetDelta<'T>
Returns: bool

filter f set

Full Usage: filter f set

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Filters the operations contains using the given predicate.

f : SetOperation<'T> -> bool
set : HashSetDelta<'T>
Returns: HashSetDelta<'T>

fold folder seed set

Full Usage: fold folder seed set

Parameters:
Returns: 'State
Modifiers: inline
Type parameters: 'State, 'T

Folds over the set.

folder : 'State -> SetOperation<'T> -> 'State
seed : 'State
set : HashSetDelta<'T>
Returns: 'State

forall predicate set

Full Usage: forall predicate set

Parameters:
Returns: bool
Modifiers: inline
Type parameters: 'T

Checks whether all entries fulfill the predicate exists.

predicate : SetOperation<'T> -> bool
set : HashSetDelta<'T>
Returns: bool

inverse set

Full Usage: inverse set

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

The inverse operations for the given set.

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

isEmpty set

Full Usage: isEmpty set

Parameters:
Returns: bool
Modifiers: inline
Type parameters: 'T

Is the set empty?

set : HashSetDelta<'T>
Returns: bool

iter iterator set

Full Usage: iter iterator set

Parameters:
Modifiers: inline
Type parameters: 'T

Iterates over all operations in the set.

iterator : SetOperation<'T> -> unit
set : HashSetDelta<'T>

map f set

Full Usage: map f set

Parameters:
Returns: HashSetDelta<'T2>
Modifiers: inline
Type parameters: 'T, 'T2

Applies the mapping function to all operations in the set.

f : SetOperation<'T> -> SetOperation<'T2>
set : HashSetDelta<'T>
Returns: HashSetDelta<'T2>

ofArray arr

Full Usage: ofArray arr

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Creates a HashSetDelta using the given operations.

arr : SetOperation<'T> array
Returns: HashSetDelta<'T>

ofHashMap map

Full Usage: ofHashMap map

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Creates a HashSetDelta using the given operations. Note that the values from the map are interpreted as reference-deltas and should therefore not be 0.

map : HashMap<'T, int>
Returns: HashSetDelta<'T>

ofList list

Full Usage: ofList list

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Creates a HashSetDelta using the given operations.

list : SetOperation<'T> list
Returns: HashSetDelta<'T>

ofSeq seq

Full Usage: ofSeq seq

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Creates a HashSetDelta using the given operations.

seq : SetOperation<'T> seq
Returns: HashSetDelta<'T>

remove value set

Full Usage: remove value set

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Removes a SetOperation from the HashSetDelta.

value : SetOperation<'T>
set : HashSetDelta<'T>
Returns: HashSetDelta<'T>

single op

Full Usage: single op

Parameters:
Returns: HashSetDelta<'T>
Modifiers: inline
Type parameters: 'T

Creates a set from a single operation.

op : SetOperation<'T>
Returns: HashSetDelta<'T>

toArray set

Full Usage: toArray set

Parameters:
Returns: SetOperation<'T>[]
Modifiers: inline
Type parameters: 'T

Creates an array containing all operations from the set.

set : HashSetDelta<'T>
Returns: SetOperation<'T>[]

toHashMap set

Full Usage: toHashMap set

Parameters:
Returns: HashMap<'T, int>
Modifiers: inline
Type parameters: 'T

Creates a HashMap containing all operations from the set. Note that this works in O(1).

set : HashSetDelta<'T>
Returns: HashMap<'T, int>

toList set

Full Usage: toList set

Parameters:
Returns: SetOperation<'T> list
Modifiers: inline
Type parameters: 'T

Creates a list containing all operations from the set.

set : HashSetDelta<'T>
Returns: SetOperation<'T> list

toSeq set

Full Usage: toSeq set

Parameters:
Returns: SetOperation<'T> seq
Modifiers: inline
Type parameters: 'T

Creates a seq containing all operations from the set.

set : HashSetDelta<'T>
Returns: SetOperation<'T> seq

Type something to start searching.