We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c4176e commit 0f321beCopy full SHA for 0f321be
src/indexing.jl
@@ -324,21 +324,21 @@ should only dispatch on `A`.
324
"""
325
function unsafe_reconstruct(axis::OneTo, data; kwargs...)
326
if axis === data
327
- return data
+ return axis
328
else
329
return OneTo(data)
330
end
331
332
function unsafe_reconstruct(axis::UnitRange, data; kwargs...)
333
334
335
336
return UnitRange(first(data), last(data))
337
338
339
function unsafe_reconstruct(axis::OptionallyStaticUnitRange, data; kwargs...)
340
341
342
343
return OptionallyStaticUnitRange(static_first(data), static_last(data))
344
0 commit comments