<div dir="auto">That implementation doesn't short-circuit if the accumulator goes empty. It also relies on the optimizer to accumulate strictly.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 7, 2020, 3:44 AM Henning Thielemann <<a href="mailto:lemming@henning-thielemann.de">lemming@henning-thielemann.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Sun, 6 Dec 2020, Reed Mullanix wrote:<br>
<br>
> In a perfect world we would use something like Foldable1 from <br>
> semigroupoids, but sadly that is not in base.<br>
<br>
Is it necessary to have it in base for your use? For me, 'NonEmpty.foldl1 <br>
Set.intersection' is perfect.<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>