Stack.opIndex

struct Stack(T)
@system
opIndex
()

Return Value

Type: StackRange!T

A range that allows iterating on the range without removing any items from it. While the range functions, items cannot be removed from the stack, or the range may break, possibly crashing the program.

Meta