Re: Strict folds without base case to `Data.Foldable`.
Simon Jakobi via Libraries <[email protected]> Wed, 30 Jun 2021 14:37:25 +0200
| Newsgroups | gmane.comp.lang.haskell.libraries |
|---|---|
| Message-ID | <CAGtp2Siojw9FZtt7FQwAUX6MEdoEqMc3xQ2tx2HmfyLHFLuJaw@mail.gmail.com> |
Apologies, I should have taken a closer look. It seems that the only response to this proposal came in January 2021: https://mail.haskell.org/pipermail/libraries/2021-January/031116.html I seem to remember some more discussion, probably elsewhere, but I can't find it right now. Am Mi., 30. Juni 2021 um 14:30 Uhr schrieb Dominik Schrempf <[email protected]>: > > Actually, following your link, I cannot find any discussion of the original > question about foldr1' or foldl1'. The discussion goes on about enhancing the > documentation of Data.Foldable. Please let me know if I missed something! > > Dominik > > Simon Jakobi via Libraries <[email protected]> writes: > > > This was discussed in December 2020: > > https://mail.haskell.org/pipermail/libraries/2020-December/031010.html > > > > Am Mi., 30. Juni 2021 um 12:49 Uhr schrieb Ignat Insarov <[email protected]>: > >> > >> 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 > > _______________________________________________ > > Libraries mailing list > > [email protected] > > http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries > _______________________________________________ Libraries mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries