Queue is an ordered linear data structure where elements are added at the end (right) and inspected and removed at the beginning (left). Ordering is by insertion history. The qualities of the Queue structure make elements first in, first out (fifo). "head" inspects the first or left-most element in the structure, while "conj" inserts an element at the end, or right of the structure. Purely functional (immutable) Queue based on Okasaki's batched queue.
Instance member | Description |
|
|
Full Usage:
this.Head
Returns: 'T
|
|
Full Usage:
this.IsEmpty
Returns: bool
|
|
Full Usage:
this.Length
Returns: int
|
|
|
|
O(1) amortized, O(n) worst-case. Returns a new queue of the elements trailing the first element. (Dequeue)
|
|
Full Usage:
this.TryHead
Returns: 'T option
|
|
|
|
|
|
|
|