Header menu logo FSharp.Data.Adaptive

SetDeltaExtensions Module

SetOperation extensions making them look like a union-type.

Functions and values

Function or value Description

Add v

Full Usage: Add v

Parameters:
    v : 'T

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

Creates an add operation (reference delta +1)

v : 'T
Returns: SetOperation<'T>

Rem v

Full Usage: Rem v

Parameters:
    v : 'T

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

Creates a remove operation (reference delta -1)

v : 'T
Returns: SetOperation<'T>

Type extensions

Type extension Description

SetOperation.Add(v)

Full Usage: SetOperation.Add(v)

Parameters:
    v : 'T

Returns: SetOperation<'T>
Modifiers: inline

Creates an add operation (reference delta +1)

Extended Type: SetOperation

v : 'T
Returns: SetOperation<'T>

SetOperation.Rem(v)

Full Usage: SetOperation.Rem(v)

Parameters:
    v : 'T

Returns: SetOperation<'T>
Modifiers: inline

Creates a remove operation (reference delta -1)

Extended Type: SetOperation

v : 'T
Returns: SetOperation<'T>

Active patterns

Active pattern Description

(|Add|Rem|) d

Full Usage: (|Add|Rem|) d

Parameters:
Returns: Choice<(int * 'T), (int * 'T)>
Modifiers: inline
Type parameters: 'T

Active pattern for SetOperation. Note that the patterns also returns the reference delta.

d : SetOperation<'T>
Returns: Choice<(int * 'T), (int * 'T)>

Type something to start searching.