Skip to content

Commit

Permalink
Update EllipsisNotation.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jun 19, 2017
1 parent 989431a commit 8411068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EllipsisNotation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module EllipsisNotation

import Base.getindex, Base.setindex!
const .. = Val{:..}()
const IndexType = Union{(VERSION < v"0.6-" ? Real : Int), Val{:..}}
const IndexType = Union{(VERSION < v"0.6.0-dev+2068" ? Real : Int), Val{:..}}

setindex!{T,N,N2}(A::AbstractArray{T,N}, x, ::Val{:..}, n::Vararg{Int,N2}) = A[(Colon() for i in 1:N-N2)..., n...] = x
getindex{T,N,N2}(A::AbstractArray{T,N}, ::Val{:..}, n::Vararg{Int,N2}) = A[(Colon() for i in 1:N-N2)..., n...]
Expand Down

0 comments on commit 8411068

Please sign in to comment.