stack
stack<
T>(initialize):StackGenerator<T>
Creates a generator that acts as a FIFO stack.
Example
collect(stack([1,2,3]))// => [1, 2, 3]Type Parameters
• T
The element type.
Parameters
initialize
Iterable<T> = []
The initial values to fill the queue.
Returns
The queue generator.