RecursiveArrayTools.jl
RecursiveArrayTools.jl copied to clipboard
enumerate with VectorOfArray
Enumerating the following MWE gives an unexpected result:
[(i,x) for (i,x) in enumerate(VectorOfArray([[1,2,3]]))]

Yeah... iteration is weird. Iteration iterates over the vectors, not the elements of the vector. This was a decision made a long long time ago which was probably wrong, but would be very breaking so it would be necessary to tie it to DiffEq v7.