Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Spine and element strict list
- data StrictList a
- = Cons !a !(StrictList a)
- | Nil
- | Snoc !(StrictList a) !a
- | Append !(StrictList a) !(StrictList a)
- append :: StrictList a -> StrictList a -> StrictList a
- foldr :: (a -> b -> b) -> b -> StrictList a -> b
Documentation
data StrictList a Source
Strict list
Cons !a !(StrictList a) | |
Nil | |
Snoc !(StrictList a) !a | |
Append !(StrictList a) !(StrictList a) |
append :: StrictList a -> StrictList a -> StrictList a Source
foldr :: (a -> b -> b) -> b -> StrictList a -> b Source