Returns the top of the stack.
Returns the top of the stack. Will throw an exception if the stack is empty.
Pushes value onto the stack only for the duration of f.
Pushes value onto the stack only for the duration of f.
the result of the function
the value to push onto the stack
the function to execute with value on the stack
R
Returns Some(t) or None if the stack is empty.
LocalStack is backed by a ThreadLocal stack of T.