Header menu logo FSharp.Data.Adaptive

HashSetDelta<'T> Type

Represents the difference of two HashSets. Internally uses reference counts to represent deltas and provides convenient combine functions.

Constructors

Constructor Description

HashSetDelta(store)

Full Usage: HashSetDelta(store)

Parameters:
Returns: HashSetDelta<'T>
store : HashMap<'T, int>
Returns: HashSetDelta<'T>

Instance members

Instance member Description

this.Add

Full Usage: this.Add

Parameters:
Returns: HashSetDelta<'T>

Adds a SetOperation to the HashSetDelta.

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

this.Choose

Full Usage: this.Choose

Parameters:
Returns: HashSetDelta<'T2>

Applies the mapping function to all operations in the set.

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

this.ChooseV

Full Usage: this.ChooseV

Parameters:
Returns: HashSetDelta<'T2>

Applies the mapping function to all operations in the set.

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

this.Collect

Full Usage: this.Collect

Parameters:
Returns: HashSetDelta<'T2>

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

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

this.Combine

Full Usage: this.Combine

Parameters:
Returns: HashSetDelta<'T>

Combines two DHashSets to one using a reference counting implementation.

other : HashSetDelta<'T>
Returns: HashSetDelta<'T>

this.Count

Full Usage: this.Count

Returns: int

The number of operations contained in the HashSetDelta.

Returns: int

this.Exists

Full Usage: this.Exists

Parameters:
Returns: bool

Checks whether an entry fulfilling the predicate exists.

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

this.Filter

Full Usage: this.Filter

Parameters:
Returns: HashSetDelta<'T>

Filters the operations contains using the given predicate.

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

this.Fold

Full Usage: this.Fold

Parameters:
Returns: 'State

Folds over the set.

seed : 'State
f : 'State -> SetOperation<'T> -> 'State
Returns: 'State

this.Forall

Full Usage: this.Forall

Parameters:
Returns: bool

Checks whether all entries fulfill the predicate exists.

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

this.GetEnumerator

Full Usage: this.GetEnumerator

Returns: HashMapEnumerator<'T, int, SetOperation<'T>>
Returns: HashMapEnumerator<'T, int, SetOperation<'T>>

this.Inverse

Full Usage: this.Inverse

Returns: HashSetDelta<'T>

The inverse operations for the given set.

Returns: HashSetDelta<'T>

this.IsEmpty

Full Usage: this.IsEmpty

Returns: bool

Is the set empty?

Returns: bool

this.Iter

Full Usage: this.Iter

Parameters:

Iterates over all operations in the set.

f : SetOperation<'T> -> unit

this.Map

Full Usage: this.Map

Parameters:
Returns: HashSetDelta<'T2>

Applies the mapping function to all operations in the set.

mapping : SetOperation<'T> -> SetOperation<'T2>
Returns: HashSetDelta<'T2>

this.Remove

Full Usage: this.Remove

Parameters:
Returns: HashSetDelta<'T>

Removes a SetOperation from the HashSetDelta.

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

this.ToArray

Full Usage: this.ToArray

Returns: SetOperation<'T>[]

Creates an array containing all operations from the set.

Returns: SetOperation<'T>[]

this.ToList

Full Usage: this.ToList

Returns: SetOperation<'T> list

Creates a list containing all operations from the set.

Returns: SetOperation<'T> list

this.ToMap

Full Usage: this.ToMap

Returns: HashMap<'T, int>

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

Returns: HashMap<'T, int>

this.ToSeq

Full Usage: this.ToSeq

Returns: SetOperation<'T> seq

Creates a seq containing all operations from the set.

Returns: SetOperation<'T> seq

Static members

Static member Description

HashSetDelta.Empty

Full Usage: HashSetDelta.Empty

Returns: HashSetDelta<'T>

The empty set.

Returns: HashSetDelta<'T>

HashSetDelta.OfArray(arr)

Full Usage: HashSetDelta.OfArray(arr)

Parameters:
Returns: HashSetDelta<'T>

Creates a HashSetDelta using the given operations.

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

HashSetDelta.OfList(list)

Full Usage: HashSetDelta.OfList(list)

Parameters:
Returns: HashSetDelta<'T>

Creates a HashSetDelta using the given operations.

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

HashSetDelta.OfSeq(seq)

Full Usage: HashSetDelta.OfSeq(seq)

Parameters:
Returns: HashSetDelta<'T>

Creates a HashSetDelta using the given operations.

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

Type something to start searching.