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 eb8a933 commit 35c67e5Copy full SHA for 35c67e5
base/tuple.jl
@@ -38,7 +38,7 @@ _setindex(v, i::Integer) = ()
38
39
## iterating ##
40
41
-iterate(t::Tuple, i::Int=1) = length(t) < i ? nothing : (t[i], i+1)
+iterate(@nospecialize(t::Tuple), i::Int=1) = 1 <= i <= length(t) ? (@inbounds t[i], i+1) : nothing
42
43
keys(@nospecialize t::Tuple) = OneTo(length(t))
44
0 commit comments