elm-community / list-extra

Convenience functions for working with List.
http://package.elm-lang.org/packages/elm-community/list-extra/latest
MIT License
135 stars 58 forks source link

Documentation added to foldl noting discrepancy with List.foldl #94

Closed Chadtech closed 6 years ago

Chadtech commented 6 years ago

@pzp1997 showed that the behavior of foldl1 is consistent with the foldl function of Haskell, but not that of Elm. Thats probably confusing to some people, and I could imagine someone getting hard-to-diagnose bugs from this. We cant just change the function and break existing code, but for now I added a note explaining the situation.