Should foldl' be added to the post-"Plan FTP" Prelude
Alois Cochard
alois.cochard at gmail.com
Wed Feb 25 20:26:42 UTC 2015
Same here (+1 foldl', -1 foldr')
On 24 February 2015 at 21:44, Chris Allen <cma at bitemyapp.com> wrote:
> (+1) on foldl', (-1) on foldr' for the reasons outlined in the other
> mailing list.
>
>
> On 02/24/2015 02:42 PM, Bob Ippolito wrote:
>
> (Cross-posted from haskell-cafe as suggested by Carter Schonwald)
>
> I would love to have foldl' as part of the Prelude. I use it quite
> frequently and it seems like a beginner trap to have foldl but not foldl'
> (which is almost always the better choice). I see that foldMap has been
> added (in addition to all of Monoid and Traversable), why was foldl' left
> out?
>
> It might be good measure to add foldr' as well, although I use that much
> less frequently.
>
> -bob
>
>
>
> _______________________________________________
> Libraries mailing listLibraries at haskell.orghttp://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
>
--
*Λ\ois*
http://twitter.com/aloiscochard
http://github.com/aloiscochard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20150225/bf84ca61/attachment.html>
More information about the Libraries
mailing list