peek

fun peek(): T

Returns the topmost element in this Stack but does not pop it.

Return

Topmost element in this Stack.

Throws

If the stack is empty.