This is the primary class for structures that are to be considered foldable. A minimum complete definition provides foldl and foldr.
Instances of FoldableLL can be folded, and can be many and varied.
These functions are used heavily in Data.ListLike.
Methods
foldl :: (a -> item -> a) -> a -> full -> aLeft-associative fold
foldl' :: (a -> item -> a) -> a -> full -> aStrict version of foldl.
foldl1 :: (item -> item -> item) -> full -> itemA variant of foldl with no base case. Requires at least 1 list element.
foldr :: (item -> b -> b) -> b -> full -> bRight-associative fold
foldr' :: (item -> b -> b) -> b -> full -> bStrict version of foldr
foldr1 :: (item -> item -> item) -> full -> itemLike foldr, but with no starting value
Instances19FoldableLL, …
FoldableLL CharString CharDefined in ListLike-4.7.8.4 · Data.ListLike.CharStringFoldableLL CharStringLazy CharDefined in ListLike-4.7.8.4 · Data.ListLike.CharStringFoldableLL Chars CharDefined in ListLike-4.7.8.4 · Data.ListLike.CharsFoldableLL ByteString Word8Defined in ListLike-4.7.8.4 · Data.ListLike.Instances · orphanFoldableLL ByteString Word8Defined in ListLike-4.7.8.4 · Data.ListLike.Instances · orphanFoldableLL Text CharDefined in ListLike-4.7.8.4 · Data.ListLike.Text.Text · orphanFoldableLL Builder CharDefined in ListLike-4.7.8.4 · Data.ListLike.Text.Builder · orphanFoldableLL Text CharDefined in ListLike-4.7.8.4 · Data.ListLike.Text.TextLazy · orphanFoldableLL (Seq a) aDefined in ListLike-4.7.8.4 · Data.ListLike.Instances · orphanFoldableLL (DList a) aDefined in ListLike-4.7.8.4 · Data.ListLike.DList · orphanFoldableLL (FMList a) aDefined in ListLike-4.7.8.4 · Data.ListLike.FMList · orphanFoldableLL (UTF8 ByteString) CharDefined in ListLike-4.7.8.4 · Data.ListLike.UTF8 · orphanFoldableLL (UTF8 ByteString) CharDefined in ListLike-4.7.8.4 · Data.ListLike.UTF8 · orphanFoldableLL (Vector a) aDefined in ListLike-4.7.8.4 · Data.ListLike.Vector.Vector · orphanFoldableLL [a] aDefined in ListLike-4.7.8.4 · Data.ListLike.FoldableLLStorable a => FoldableLL (Vector a) aDefined in ListLike-4.7.8.4 · Data.ListLike.Vector.Storable · orphanVector v a => FoldableLL (v a) aDefined in ListLike-4.7.8.4 · Data.ListLike.Vector.Generic · orphanUnbox a => FoldableLL (Vector a) aDefined in ListLike-4.7.8.4 · Data.ListLike.Vector.Unboxed · orphanIx i => FoldableLL (Array i e) eDefined in ListLike-4.7.8.4 · Data.ListLike.Instances · orphan