Nice, I’ll get a PR together when I get a chance.

Cheers

Adam

> On 7 Oct 2020, at 14:44, Andrea Leopardi <[email protected]> wrote:
> 
> +1 for "zip_with" naming
> 
> On Wed, Oct 7, 2020 at 3:40 PM José Valim <[email protected] 
> <mailto:[email protected]>> wrote:
> 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] <mailto:[email protected]> 
> <[email protected] <mailto:[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] 
> <mailto:[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] 
> <mailto:[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
>  
> <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LstQwu4V-kPjVPCevnVe_WO9pUE-DDq0VohTo1u%3DWEmw%40mail.gmail.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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elixir-lang-core/CAM9Rf%2B%2B7evZaq74ppZj7LuwotTeuEhiuwOK_LfVEj5uY4W5MPg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/elixir-lang-core/CAM9Rf%2B%2B7evZaq74ppZj7LuwotTeuEhiuwOK_LfVEj5uY4W5MPg%40mail.gmail.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/6A527B9F-690B-4786-A7B8-89E4563A7AB6%40a-corp.co.uk.

Reply via email to