Pattern matches over the Stack, applying a handler function based on whether it's empty
Object with handler functions for Empty and NonEmpty variants
The result of applying the matching handler function
Returns a string representation of the stack
A string representation
Stack data structure - Last In, First Out (LIFO) Implements the Traversable interface for working with ordered collections