Stack.swap

Swaps the top two entries

struct Stack(V, int Size = 0)
V
swap
()

Return Value

Type: V

the top element after swapping

Throws

StackBoundsException when the stack has insufficient entries

Meta