Stability | experimental |
---|---|
Maintainer | conal@conal.net |
Data.Zip.FoldL
Description
Zipping of non-strict left folds.
See http://conal.net/blog/tag/zip. Inspired by Beautiful FoldLs by Max Rabkin http://squing.blogspot.com/2008/11/beautiful-folding.html
- data FoldL b a = F (a -> b -> a) a
- cfoldl :: FoldL b a -> [b] -> a
- cfoldl' :: FoldL b a -> [b] -> a
- unitL :: FoldL b ()
- data WithCont z c
- type FoldLC b = WithCont (FoldL b)
- cfoldlc :: FoldLC b a -> [b] -> a
- data WithCont' z c
- type FoldLC' b = WithCont' (FoldL b)
- cfoldlc' :: FoldLC' b a -> [b] -> a
- class Zip' f where
- data P c c' = P !c !c'