FP Laboratory 10
Jump to navigation
Jump to search
Abstract data types
- Create an abstract data type
Stack
with following functions:
push :: a -> Stack a -> Stack a
pop :: Stack a -> Stack a
top :: Stack a -> a
isEmpty :: Stack a ->Bool