Is there a Julia equivalent to NumPy's ellipsis slicing syntax (…)?
问题 In NumPy, the ellipsis syntax is for filling in a number of : until the number of slicing specifiers matches the dimension of the array. (paraphrasing this answer). How can I do that in Julia? 回答1: Not yet, but you can help yourself if you want. import Base.getindex, Base.setindex! const .. = Val{:...} setindex!{T}(A::AbstractArray{T,1}, x, ::Type{Val{:...}}, n) = A[n] = x setindex!{T}(A::AbstractArray{T,2}, x, ::Type{Val{:...}}, n) = A[ :, n] = x setindex!{T}(A::AbstractArray{T,3}, x, ::Type