fmlist-0.2: FoldMap lists

Portabilityportable
Stabilityexperimental
Maintainersjoerd

Data.FMList

Description

FoldMap lists: lists represented by their foldMap function.

Synopsis

Documentation

newtype FMList a Source

Constructors

FM 

Fields

unFM :: forall b. Monoid b => (a -> b) -> b
 

empty :: Alternative f => forall a. f a

The identity of <|>

cons :: a -> FMList a -> FMList aSource

snoc :: FMList a -> a -> FMList aSource

toList :: Foldable t => t a -> [a]

List of elements of a structure.

head :: FMList a -> aSource

last :: FMList a -> aSource

filter :: (a -> Bool) -> FMList a -> FMList aSource

take :: (Ord n, Num n) => n -> FMList a -> FMList aSource

drop :: (Ord n, Num n) => n -> FMList a -> FMList aSource

takeWhile :: (a -> Bool) -> FMList a -> FMList aSource

dropWhile :: (a -> Bool) -> FMList a -> FMList aSource

zip :: FMList a -> FMList b -> FMList (a, b)Source

zipWith :: (a -> b -> c) -> FMList a -> FMList b -> FMList cSource

iterate :: (a -> a) -> a -> FMList aSource

unfoldr :: (b -> Maybe (a, b)) -> b -> FMList aSource

unfoldl :: (b -> Maybe (b, a)) -> b -> FMList aSource