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.
Int
1 parent 788f44e commit 9b955adCopy full SHA for 9b955ad
Project.toml
@@ -1,6 +1,6 @@
1
name = "ArrayInterface"
2
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3
-version = "2.14.5"
+version = "2.14.6"
4
5
[deps]
6
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
src/ranges.jl
@@ -373,6 +373,8 @@ end
373
const OptionallyStaticRange = Union{<:OptionallyStaticUnitRange,<:OptionallyStaticStepRange}
374
375
Base.eachindex(r::OptionallyStaticRange) = r
376
+@inline Base.iterate(r::OptionallyStaticRange) = (fi = Int(first(r)); (fi,fi))
377
+
378
379
Base.to_shape(x::OptionallyStaticRange) = length(x)
380
Base.to_shape(x::Slice{T}) where {T<:OptionallyStaticRange} = length(x)
0 commit comments