;) ok, thanks Schnetter
Em segunda-feira, 22 de agosto de 2016 20:39:11 UTC-3, Erik Schnetter escreveu: > > 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, <[email protected] <javascript:>> > 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 <[email protected] <javascript:>> > http://www.perimeterinstitute.ca/personal/eschnetter/ >
