Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- type Stack a = OSet a
- empty :: Stack a
- insert :: Ord a => a -> Stack a -> Stack a
- removeLast :: Ord a => Stack a -> Stack a
- head :: Stack a -> a
- last :: Stack a -> a
- tail :: Ord a => Stack a -> [a]
- elemAt :: Stack a -> Int -> Maybe a
- unsafeElemAt :: Stack a -> Int -> a
- fromList :: Ord a => [a] -> Stack a
- size :: Stack a -> Int
- toList :: Foldable t => t a -> [a]
Documentation
unsafeElemAt :: Stack a -> Int -> a Source #