I just rewrote one of my parallel loops and was surprised by this:

> list = ["a", "b", "c"]

> for i in enumerate(list)
>   println(i)
> end

(1,"a") 
(2,"b") 
(3,"c")

> addprocs(2)

> @sync @parallel for i in enumerate(list)
>   println(i)
> end

ERROR: `getindex` has no method matching 
getindex(::Enumerate{Array{ASCIIString,1}}, ::UnitRange{Int64})

Am I doing something wrong here? Is this expected behaviour?

Reply via email to