On Thursday, October 20, 2016 at 3:12:57 PM UTC+1, Robin Heggelund Hansen 
wrote:
>
> In the same spirit, I propose that we change the name of foldl to 
> foldLeft, and the name of foldr to foldRight. The difference between foldl 
> and foldr isn't to spot at a cursory glance. foldLeft is also more 
> self-describing than foldl, it also matches what I say when I read foldl 
> aloud while explaining code to others.
>

Also worth pointing out that these libraries (and possibly others) have 
adopted the convention of using a single 'l' or 'r' to mean from-the-left 
and from-the-right: 

http://package.elm-lang.org/packages/Fresheyeball/elm-function-extra/1.1.0/Function-Extra
http://package.elm-lang.org/packages/elm-community/list-extra/3.1.0/List-Extra
http://package.elm-lang.org/packages/elm-community/array-extra/1.0.1/Array-Extra

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to