Safe Haskell | None |
---|---|
Language | Haskell2010 |
A simple stack type. Very similar to an ordinary list, but with a more specialized API.
Documentation
The usual stack data structure.
forEachPop :: [x] -> Stack a -> Maybe ([a], Stack a) Source
For each list element, pop one element off the stack. Fail if not enough elements are on the stack.