Header menu logo FSharp.Data.Adaptive

IndexList Module

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

Functions and values

Function or value Description

applyDelta x deltas

Full Usage: applyDelta x deltas

Parameters:
Returns: IndexList<'T> * IndexListDelta<'T>

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

x : IndexList<'T>
deltas : IndexListDelta<'T>
Returns: IndexList<'T> * IndexListDelta<'T>

computeDelta l r

Full Usage: computeDelta l r

Parameters:
Returns: IndexListDelta<'T>

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

l : IndexList<'T>
r : IndexList<'T>
Returns: IndexListDelta<'T>

computeDeltaCustom add remove update l r

Full Usage: computeDeltaCustom add remove update l r

Parameters:
Returns: IndexListDelta<'T>

Applies the given operations to the list, using custom element operation functions. Returns the new list and the 'effective' operations.

add : Index -> 'T -> ElementOperation<'T>
remove : Index -> 'T -> ElementOperation<'T>
update : Index -> 'T -> 'T -> ValueOption<ElementOperation<'T>>
l : IndexList<'T>
r : IndexList<'T>
Returns: IndexListDelta<'T>

computeDeltaToArray cmp src dst

Full Usage: computeDeltaToArray cmp src dst

Parameters:
Returns: IndexListDelta<'a>

Determines the operations needed to transform src into dst. Returns a IndexListDelta containing these operations.

cmp : IEqualityComparer<'a>
src : IndexList<'a>
dst : 'a[]
Returns: IndexListDelta<'a>

computeDeltaToArrayAndGetResult cmp src dst

Full Usage: computeDeltaToArrayAndGetResult cmp src dst

Parameters:
Returns: IndexListDelta<'a> * IndexList<'a>

Determines the operations needed to transform src into dst. Returns a IndexListDelta containing these operations and the resulting IndexList.

cmp : IEqualityComparer<'a>
src : IndexList<'a>
dst : 'a[]
Returns: IndexListDelta<'a> * IndexList<'a>

computeDeltaToList cmp src dst

Full Usage: computeDeltaToList cmp src dst

Parameters:
Returns: IndexListDelta<'a>

Determines the operations needed to transform src into dst. Returns a IndexListDelta containing these operations.

cmp : IEqualityComparer<'a>
src : IndexList<'a>
dst : 'a list
Returns: IndexListDelta<'a>

computeDeltaToSeq cmp src dst

Full Usage: computeDeltaToSeq cmp src dst

Parameters:
Returns: IndexListDelta<'a>

Determines the operations needed to transform src into dst. Returns a IndexListDelta containing these operations.

cmp : IEqualityComparer<'a>
src : IndexList<'a>
dst : 'a seq
Returns: IndexListDelta<'a>

Type something to start searching.