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? 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{Val{:...}}, n) = A[ :, :, n] =x getindex{T}(A::AbstractArray{T,1}, ::Type{Val{:...}}, n) = A[n] getindex{T