Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains strict versions of some standard data structures.
Synopsis
- data List a
- init' :: List a -> List a
- listDelay :: List (O a) -> O (List a)
- reverse' :: List a -> List a
- (+++) :: List a -> List a -> List a
- listToMaybe' :: List a -> Maybe' a
- mapMaybe' :: (a -> Maybe' b) -> List a -> List b
- data a :* b = !a :* !b
- data Maybe' a
- maybe' :: b -> (a -> b) -> Maybe' a -> b
- fst' :: (a :* b) -> a
- snd' :: (a :* b) -> b
Documentation
Strict list type.
Instances
Foldable List Source # | |
Defined in Rattus.Strict fold :: Monoid m => List m -> m # foldMap :: Monoid m => (a -> m) -> List a -> m # foldMap' :: Monoid m => (a -> m) -> List a -> m # foldr :: (a -> b -> b) -> b -> List a -> b # foldr' :: (a -> b -> b) -> b -> List a -> b # foldl :: (b -> a -> b) -> b -> List a -> b # foldl' :: (b -> a -> b) -> b -> List a -> b # foldr1 :: (a -> a -> a) -> List a -> a # foldl1 :: (a -> a -> a) -> List a -> a # elem :: Eq a => a -> List a -> Bool # maximum :: Ord a => List a -> a # | |
Functor List Source # | |
init' :: List a -> List a Source #
Remove the last element from a list if there is one, otherwise
return Nil
.
listDelay :: List (O a) -> O (List a) Source #
Turns a list of delayed computations into a delayed computation that produces a list of values.
listToMaybe' :: List a -> Maybe' a Source #
Strict pair type.
!a :* !b infixr 2 |