The function passed to List.foldl/List.foldp has the current value first and the accumulated value second. Ex)--List.foldl (\element memo -> memo ++ element) "a" ["b", "c", "d"] -- "abcd"This is backwards from similar functions in most other languages:Is there a reason it was done this way?
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 elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.