stack-type-0.1.0.0: The basic stack type

Safe HaskellSafe
LanguageHaskell2010

Data.Stack

Description

The basic stack type

Documentation

type Stack s a = State [s] a Source #

push :: s -> Stack s () Source #

pop :: Stack s s Source #

runStack :: Stack s a -> [s] -> (a, [s]) Source #