In Julia v1.0 the type CartesianRange
was removed in favor of CartesianIndices
. To construct a N-dimensional rectangular region, we have to do:
CartesianIndices(ntuple(i -> start[i]:finish[i], N))
which is relatively ugly. Could we have the old syntax like CartesianIndices(start, finish)
work again?