get

operator fun get(index: Int): T

Operator function allowing array style access of the stack.

Return

The target stack item.

Since

0.2.0

Parameters

index

Zero-based index of the stack item to get.

Throws

If the given index is less than zero or greater than or equal to size.