
7 Dec
2020
7 Dec
'20
3:50 a.m.
That implementation doesn't short-circuit if the accumulator goes empty. It also relies on the optimizer to accumulate strictly. On Mon, Dec 7, 2020, 3:44 AM Henning Thielemann < lemming@henning-thielemann.de> wrote:
On Sun, 6 Dec 2020, Reed Mullanix wrote:
In a perfect world we would use something like Foldable1 from semigroupoids, but sadly that is not in base.
Is it necessary to have it in base for your use? For me, 'NonEmpty.foldl1 Set.intersection' is perfect. _______________________________________________ Libraries mailing list Libraries@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries