cons x xs
Signature: x:'T -> xs:BinaryRandomAccessList<'T> -> BinaryRandomAccessList<'T>
Type parameters: 'T
|
O(log n), worst case. Returns a new random access list with the element added to the beginning.
|
empty ()
Signature: unit -> BinaryRandomAccessList<'T>
Type parameters: 'T
|
O(1). Returns a empty random access list.
|
head xs
Signature: xs:BinaryRandomAccessList<'T> -> 'T
Type parameters: 'T
|
O(log n), worst case. Returns the first element.
|
isEmpty xs
Signature: xs:BinaryRandomAccessList<'T> -> bool
Type parameters: 'T
|
O(1). Returns true if the random access list has no elements.
|
length xs
Signature: xs:BinaryRandomAccessList<'T> -> int
Type parameters: 'T
|
O(log n). Returns the count of elememts.
|
lookup i xs
Signature: i:int -> xs:BinaryRandomAccessList<'T> -> 'T
Type parameters: 'T
|
O(log n), worst case. Returns element by index.
|
ofSeq s
Signature: s:seq<'?14148> -> BinaryRandomAccessList<'?14148>
Type parameters: '?14148
|
O(n). Returns random access list from the sequence.
|
rev xs
Signature: xs:BinaryRandomAccessList<'T> -> BinaryRandomAccessList<'T>
Type parameters: 'T
|
O(n). Returns random access list reversed.
|
tail xs
Signature: xs:BinaryRandomAccessList<'T> -> BinaryRandomAccessList<'T>
Type parameters: 'T
|
O(log n), worst case. Returns a new random access list of the elements trailing the first element.
|
tryGetHead xs
Signature: xs:BinaryRandomAccessList<'T> -> 'T option
Type parameters: 'T
|
O(log n), worst case. Returns option first element.
|
tryGetTail xs
Signature: xs:BinaryRandomAccessList<'T> -> BinaryRandomAccessList<'T> option
Type parameters: 'T
|
O(log n), worst case. Returns a option random access list of the elements trailing the first element.
|
tryLookup i xs
Signature: i:int -> xs:BinaryRandomAccessList<'T> -> 'T option
Type parameters: 'T
|
O(log n), worst case. Returns option element by index.
|
tryUncons xs
Signature: xs:BinaryRandomAccessList<'T> -> ('T * BinaryRandomAccessList<'T>) option
Type parameters: 'T
|
O(log n), worst case. Returns the option first element and tail.
|
tryUpdate i y xs
Signature: i:int -> y:'T -> xs:BinaryRandomAccessList<'T> -> BinaryRandomAccessList<'T> option
Type parameters: 'T
|
O(log n), worst case. Returns option random access list with element updated by index.
|
uncons xs
Signature: xs:BinaryRandomAccessList<'T> -> 'T * BinaryRandomAccessList<'T>
Type parameters: 'T
|
O(log n), worst case. Returns the first element and tail.
|
update i y xs
Signature: i:int -> y:'T -> xs:BinaryRandomAccessList<'T> -> BinaryRandomAccessList<'T>
Type parameters: 'T
|
O(log n), worst case. Returns random access list with element updated by index.
|