Composable, streaming, and efficient left folds

Version on this page:1.0.7@rev:1
LTS Haskell 18.0:1.4.11
Stackage Nightly 2021-06-21:1.4.11
Latest on Hackage:1.4.11

See all snapshots foldl appears in

BSD-3-Clause licensed by Gabriel Gonzalez
Maintained by
This version can be pinned in stack with:foldl-1.0.7@sha256:00f694d3c7be565194e9404f4ff8014a2b005866ed70311c869377b2668cceec,1309

Module documentation for 1.0.7

  • Control
    • Control.Foldl
      • Control.Foldl.ByteString
      • Control.Foldl.Text

This library provides strict left folds that stream in constant memory, and you can combine folds using Applicative style to derive new folds. Derived folds still traverse the container just once and are often as efficient as hand-written folds.