Sorry if this is a newbie question.  I am trying to get map() to work with 
with enumerate() but I am getting an error.

r=rand(5)
map((i,v)->i+v, enumerate(r))
ERROR: wrong number of arguments
 in anonymous at none:1
 in map at abstractarray.jl:1207

collect(enumerate(r)) generates an array of 2-tuples as expected.

Is the syntax incorrect?

Thanks,

Ritchie

Reply via email to