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 6e4430a commit 984a0dbCopy full SHA for 984a0db
Project.toml
@@ -1,6 +1,6 @@
1
name = "ArrayInterface"
2
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3
-version = "3.1.34"
+version = "3.1.35"
4
5
[deps]
6
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
src/ranges.jl
@@ -399,7 +399,7 @@ end
399
400
const OptionallyStaticRange = Union{<:OptionallyStaticUnitRange,<:OptionallyStaticStepRange}
401
402
-Base.eachindex(r::OptionallyStaticRange) = r
+Base.eachindex(r::OptionallyStaticRange) = One():static_length(r)
403
@inline function Base.iterate(r::OptionallyStaticRange)
404
isempty(r) && return nothing
405
fi = Int(first(r));
0 commit comments