foldrM definition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

foldrM definition

Dannyu NDos
Wouldn't it be friendlier to list structures if foldl' was used instead of foldl?

_______________________________________________
Libraries mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
Reply | Threaded
Open this post in threaded view
|

Re: foldrM definition

David Feuer
Not likely. I don't think there's really any way to make it very friendly to lists. Remember that the "accumulator" here is a *function*. Forcing that function isn't likely to do you any good. foldrM is mainly for containers that can be traversed from right to left anyways.

On Tue, Aug 6, 2019, 9:58 AM Dannyu NDos <[hidden email]> wrote:
Wouldn't it be friendlier to list structures if foldl' was used instead of foldl?
_______________________________________________
Libraries mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries

_______________________________________________
Libraries mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries