Strict folds without base case to `Data.Foldable`.
Ignat Insarov <[email protected]> Wed, 30 Jun 2021 15:50:11 +0500
| Newsgroups | gmane.comp.lang.haskell.libraries |
|---|---|
| Message-ID | <CAB-2Q08tF3P7qqhAKdGDN2jZQYfmeirc=d+LQSw+XkbEipWfmg@mail.gmail.com> |
Hello. I notice that in `"base" Data.Foldable` there are strict left and right folds, but no corresponding folds without base case, that is, `foldl1'` and `foldr1'`. Can this omission be ameliorated? The implementation is trivial. _______________________________________________ Libraries mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries