This function could be added... Currently, you'll have to `zip` the two collections, and unzip them in your function:
```Julia mapreduce(a -> begin x,y=a; 2*y^2 - 1 + x end, +, zip([1,2,3], [1,2,3])) ``` -erik On Mon, Aug 22, 2016 at 7:31 PM, <jmarcellopere...@ufpi.edu.br> wrote: > how to write mapreduce for two variable? Ex: > > mapreduce((x,y)-> 2*y.^2 - 1 + x, + ,1:3,1:3) > > LoadError: wrong number of arguments > while loading In[182], in expression starting on line 1 > > in anonymous at ./In[182]:1 > > > > > -- Erik Schnetter <schnet...@gmail.com> http://www.perimeterinstitute.ca/personal/eschnetter/