Defines functions which allow to access and manipulate PersistentVectors.
Function or value | Description |
Full Usage:
PersistentVector.append arg1 arg2
Parameters:
PersistentVector<'T>
arg1 : PersistentVector<'T>
Returns: PersistentVector<'T>
|
|
Full Usage:
PersistentVector.conj arg1 arg2
Parameters:
'T
arg1 : PersistentVector<'T>
Returns: PersistentVector<'T>
|
|
|
|
Full Usage:
PersistentVector.flatten arg1
Parameters:
PersistentVector<PersistentVector<'T>>
Returns: seq<'T>
|
|
Full Usage:
PersistentVector.fold arg1 arg2 arg3
Parameters:
'State -> 'T -> 'State
arg1 : 'State
arg2 : PersistentVector<'T>
Returns: 'State
|
|
Full Usage:
PersistentVector.foldBack arg1 arg2 arg3
Parameters:
'T -> 'State -> 'State
arg1 : PersistentVector<'T>
arg2 : 'State
Returns: 'State
|
|
Full Usage:
PersistentVector.init arg1 arg2
Parameters:
int
arg1 : int -> 'T
Returns: PersistentVector<'T>
|
|
Full Usage:
PersistentVector.initial arg1
Parameters:
PersistentVector<'T>
Returns: PersistentVector<'T>
|
O(1) for all practical purposes; really O(log32n). Returns a new vector without the last item. If the collection is empty it throws an exception.
|
|
|
|
|
|
|
Full Usage:
PersistentVector.map arg1 arg2
Parameters:
'T -> 'T1
arg1 : PersistentVector<'T>
Returns: PersistentVector<'T1>
|
O(n). Returns a vector whose elements are the results of applying the supplied function to each of the elements of a supplied vector.
|
Full Usage:
PersistentVector.nth arg1 arg2
Parameters:
int
arg1 : PersistentVector<'T>
Returns: 'T
|
O(1) for all practical purposes; really O(log32n). Returns the value at the index. If the index is out of bounds it throws an exception.
|
Full Usage:
PersistentVector.nthNth arg1 arg2 arg3
Parameters:
int
arg1 : int
arg2 : PersistentVector<PersistentVector<'T>>
Returns: 'T
|
O(log32(m,n)). Returns the value at the outer index, inner index. If either index is out of bounds it throws an exception.
|
|
|
Full Usage:
PersistentVector.rangedIterator arg1 arg2 arg3
Parameters:
int
arg1 : int
arg2 : PersistentVector<'T>
Returns: seq<'T>
|
O(n). Views a subset of the given vector. startIndex is inclusive, endIndex is exclusive. `rangedIterator 0 count` is the same as toSeq
|
Full Usage:
PersistentVector.rev arg1
Parameters:
PersistentVector<'T>
Returns: PersistentVector<'T>
|
|
|
|
|
|
Full Usage:
PersistentVector.tryInitial arg1
Parameters:
PersistentVector<'T>
Returns: PersistentVector<'T> option
|
|
Full Usage:
PersistentVector.tryLast arg1
Parameters:
PersistentVector<'T>
Returns: 'T option
|
|
Full Usage:
PersistentVector.tryNth arg1 arg2
Parameters:
int
arg1 : PersistentVector<'T>
Returns: 'T option
|
|
Full Usage:
PersistentVector.tryNthNth arg1 arg2 arg3
Parameters:
int
arg1 : int
arg2 : PersistentVector<PersistentVector<'T>>
Returns: 'T option
|
|
Full Usage:
PersistentVector.tryUnconj arg1
Parameters:
PersistentVector<'T>
Returns: (PersistentVector<'T> * 'T) option
|
O(1) for all practical purposes; really O(log32n). Returns option tuple last element and vector without last item
|
Full Usage:
PersistentVector.tryUpdate arg1 arg2 arg3
Parameters:
int
arg1 : 'T
arg2 : PersistentVector<'T>
Returns: PersistentVector<'T> option
|
O(1) for all practical purposes; really O(log32n). Returns option vector that contains the given value at the index.
|
Full Usage:
PersistentVector.tryUpdateNth arg1 arg2 arg3 arg4
Parameters:
int
arg1 : int
arg2 : 'T
arg3 : PersistentVector<PersistentVector<'T>>
Returns: PersistentVector<PersistentVector<'T>> option
|
|
Full Usage:
PersistentVector.unconj arg1
Parameters:
PersistentVector<'T>
Returns: PersistentVector<'T> * 'T
|
O(1) for all practical purposes; really O(log32n). Returns tuple last element and vector without last item
|
Full Usage:
PersistentVector.update arg1 arg2 arg3
Parameters:
int
arg1 : 'T
arg2 : PersistentVector<'T>
Returns: PersistentVector<'T>
|
O(1) for all practical purposes; really O(log32n). Returns a new vector that contains the given value at the index.
|
Full Usage:
PersistentVector.updateNth arg1 arg2 arg3 arg4
Parameters:
int
arg1 : int
arg2 : 'T
arg3 : PersistentVector<PersistentVector<'T>>
Returns: PersistentVector<PersistentVector<'T>>
|
|
Full Usage:
PersistentVector.windowSeq arg1 arg2
Parameters:
int
arg1 : seq<'T>
Returns: PersistentVector<PersistentVector<'T>>
|
|
Active pattern | Description |
Full Usage:
PersistentVector.(|Conj|Nil|) arg1
Parameters:
PersistentVector<'T>
Returns: Choice<(PersistentVector<'T> * 'T), unit>
|
|