popOrNull

fun popOrNull(): T?

Pops the topmost element in this Stack.

Return

Topmost element in this Stack or null if the Stack is empty.