Thanks Bruce for the proposal. I have run into this and, generally speaking, I have addressed it by using &1, ...:
Enum.reduce([4, 3, ...], 10, &subtract(&2, &1)) Still quite concise. Most often the function I call in reduce also needs other parameters and that handles it well: Enum.reduce([4, 3, ...], 10, &something(&2, param, &1)) My concern with adding fold is that it will spiral out of control: fold, map_fold, flat_map_fold, fold_while, etc. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4KUbSv0diJvjcOCM55jfUiP%2Bi4-rshT6zCyQk_cWAu8LA%40mail.gmail.com.
