Just to follow up I've raised a PR here: 
https://github.com/elixir-lang/elixir/pull/10419

Comments welcome!

Adam

On Wednesday, October 7, 2020 at 2:36:43 PM UTC+1 [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/7dd1703d-247c-4468-afbf-a27e5fbed9d5n%40googlegroups.com.

Reply via email to