|
O(n), worst case. Returns a new deque with the element added to the beginning.
-
x
:
'T
-
q
:
Deque<'T>
-
Returns:
Deque<'T>
|
|
O(1). Returns deque of no elements.
-
()
:
unit
-
Returns:
Deque<'a>
|
|
O(1) amortized, O(n), worst case. Returns the first element.
-
q
:
Deque<'T>
-
Returns:
'T
|
|
O(1) amortized, O(n), worst case. Returns a new deque of the elements before the last element.
-
q
:
Deque<'T>
-
Returns:
Deque<'T>
|
|
O(1). Returns true if the deque has no elements.
-
q
:
Deque<'T>
-
Returns:
bool
|
|
O(1) amortized, O(n), worst case. Returns the last element.
-
q
:
Deque<'T>
-
Returns:
'T
|
|
O(1). Returns the count of elements.
-
q
:
Deque<'T>
-
Returns:
int
|
|
O(n), worst case. Returns element by index.
-
i
:
int
-
q
:
Deque<'T>
-
Returns:
'T
|
|
O(ys). Returns a deque of the two lists concatenated.
-
xs
:
'a list
-
ys
:
'a list
-
Returns:
Deque<'a>
|
|
O(n/2). Returns a deque of the seq.
-
xs
:
seq<'a>
-
Returns:
Deque<'a>
|
|
O(n), worst case. Returns deque with element removed by index.
-
i
:
int
-
q
:
Deque<'T>
-
Returns:
Deque<'T>
|
|
O(1). Returns deque reversed.
-
q
:
Deque<'T>
-
Returns:
Deque<'T>
|
|
O(1). Returns a deque of one element.
-
x
:
'a
-
Returns:
Deque<'a>
|
|
O(1) amortized, O(n), worst case. Returns a new deque with the element added to the end.
-
x
:
'T
-
q
:
Deque<'T>
-
Returns:
Deque<'T>
|
|
O(1) amortized, O(n), worst case. Returns a new deque of the elements trailing the first element.
-
q
:
Deque<'T>
-
Returns:
Deque<'T>
|
|
O(1) amortized, O(n), worst case. Returns option first element.
-
q
:
Deque<'T>
-
Returns:
'T option
|
|
O(1) amortized, O(n), worst case. Returns option deque of the elements before the last element.
-
q
:
Deque<'T>
-
Returns:
Deque<'T> option
|
|
O(1) amortized, O(n), worst case. Returns option last element.
-
q
:
Deque<'T>
-
Returns:
'T option
|
|
O(1) amortized, O(n), worst case. Returns option deque of the elements trailing the first element.
-
q
:
Deque<'T>
-
Returns:
Deque<'T> option
|
|
O(n), worst case. Returns option element by index.
-
i
:
int
-
q
:
Deque<'T>
-
Returns:
'T option
|
|
O(n), worst case. Returns option deque with element removed by index.
-
i
:
int
-
q
:
Deque<'T>
-
Returns:
Deque<'T> option
|
|
O(1) amortized, /O(n), worst case. Returns option first element and tail.
-
q
:
Deque<'T>
-
Returns:
('T * Deque<'T>) option
|
|
O(1) amortized, O(n), worst case. Returns option init and the last element.
-
q
:
Deque<'T>
-
Returns:
(Deque<'T> * 'T) option
|
|
O(n), worst case. Returns option deque with element updated by index.
-
i
:
int
-
y
:
'T
-
q
:
Deque<'T>
-
Returns:
Deque<'T> option
|
|
O(1) amortized, O(n), worst case. Returns the first element and tail.
-
q
:
Deque<'T>
-
Returns:
'T * Deque<'T>
|
|
O(1) amortized, O(n), worst case. Returns init and the last element.
-
q
:
Deque<'T>
-
Returns:
Deque<'T> * 'T
|
|
O(n), worst case. Returns deque with element updated by index.
-
i
:
int
-
y
:
'T
-
q
:
Deque<'T>
-
Returns:
Deque<'T>
|