Function or value | Description |
|
|
|
|
Full Usage:
Queue.fold arg1 arg2 arg3
Parameters:
'State -> 'T -> 'State
arg1 : 'State
arg2 : Queue<'T>
Returns: 'State
|
O(n). Applies a function to each element of the queue, threading an accumulator argument through the computation, left to right.
|
Full Usage:
Queue.foldBack arg1 arg2 arg3
Parameters:
'T -> 'State -> 'State
arg1 : Queue<'T>
arg2 : 'State
Returns: 'State
|
O(n). Applies a function to each element of the queue, threading an accumulator argument through the computation, right to left.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
O(1) amortized, O(n) worst-case. Returns a new queue of the elements trailing the first element. (dequeue)
|
|
|
|
|
|
|
|
|
|
|