pandora-0.1.8: A box of patterns and paradigms

Safe HaskellSafe
LanguageHaskell2010

Pandora.Paradigm.Structure.Stack

Synopsis

Documentation

type Stack a = (Maybe :.: Twister Maybe) >< a Source #

Linear data structure that serves as a collection of elements

push :: a -> Stack a -> Stack a Source #

top :: Stack a -> Maybe a Source #

pop :: Stack a -> Stack a Source #

linearize :: Traversable t => t a -> Stack a Source #

Transform any traversable structure into a stack