Yes, please. I believe it is conventionally called Enum.zip_with/3, so perhaps we should go with the same name?
On Wed, Oct 7, 2020 at 3:36 PM [email protected] <[email protected]> wrote: > Hello, > > Would the community be open to a 3 arity Enum.zip function which takes a > function as the last argument? > > ```elixir > Enum.zip([1,2], [2,3], fn x, y -> x + y end) #=> [3, 5] > ``` > > I presume we could make this more efficient than `Enum.zip |> Enum.map` > because we could iterate through the collection once instead of twice. > > Best > > Adam > > -- > 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/e546a439-5571-49d9-b07e-4876f57ad678n%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/e546a439-5571-49d9-b07e-4876f57ad678n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAGnRm4LstQwu4V-kPjVPCevnVe_WO9pUE-DDq0VohTo1u%3DWEmw%40mail.gmail.com.
