OK. For those of you following along, I hope the third time's a charm! (I already inadvisedly submitted this to the Issue tracker and elm-dev)
It seems to me that Result.map2, Result.map3, etc should actually be called Result.foldl2, Result.foldl3, etc. As I understand it, map should be fully parallelizable, applying a func to items in a list without regard to the other items in the list. On the other hand, foldl reduces the dimensionality of the input values, often from 2 to 1. Going further, perhaps there should be a Result.foldl with the type signature: foldl : (a -> value -> value) -> value -> List (Result x a) -> Result x value *NB:* Forgive my inexperience in the FP world... this issue is coming from my experience as an OO programmer. For example, I nearly submitted this issue with reduce rather than foldl. :P -- 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.
