-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
Reported here: https://discourse.julialang.org/t/indexing-a-number/88735. My reasoning is that fill(1)[1:1] works so 1[1:1] should produce the same thing:
julia> fill(1)[1:1]
1-element Vector{Int64}:
1
julia> 1[1:1]
ERROR: MethodError: no method matching getindex(::Int64, ::UnitRange{Int64})Metadata
Metadata
Assignees
Labels
No labels