[core libraries] Proposal: Make default impls for foldl1 and foldr1 lazier

Dan Burton danburton.email at gmail.com
Sun Nov 2 02:03:54 UTC 2014


+1

lambdacase, anyone? :P

    where
        mf x = Just . \case
            Nothing -> x
            Just y  -> f x y

-- Dan Burton

On Sat, Nov 1, 2014 at 6:30 PM, John Wiegley <johnw at newartisans.com> wrote:

> >>>>> Edward Kmett <ekmett at gmail.com> writes:
>
> > +1 from me.
>
> +1 from me too.
>
> John
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20141101/6f90c7bc/attachment.html>


More information about the Libraries mailing list