foldl package:text

O(n) foldl, applied to a binary operator, a starting value (typically the left-identity of the operator), and a Text, reduces the Text using the binary operator, from left to right.
foldl, applied to a binary operator, a starting value (typically the left-identity of the operator), and a Stream, reduces the Stream using the binary operator, from left to right. Properties
foldl f z0 . stream = foldl f z0
O(n) A strict version of foldl.
O(n) A variant of foldl that has no starting value argument, and thus must be applied to a non-empty Text.
O(n) A strict version of foldl1.
O(n) A monadic version of foldl'.
A strict version of foldl. Properties
foldl' f z0 . stream = foldl' f z0
foldl1 is a variant of foldl that has no starting value argument, and thus must be applied to non-empty Streams. Properties
foldl1 f . stream = foldl1 f
A strict version of foldl1. Properties
foldl1' f . stream = foldl1' f
A monadic version of foldl. Properties
foldlM' f z0 . stream = foldlM' f z0
Consume the chunks of a lazy Text with a strict, tail-recursive, accumulating left fold.