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 54bd72c commit 8f839d0Copy full SHA for 8f839d0
base/iterators.jl
@@ -121,7 +121,6 @@ IteratorEltype(::Type{Reverse{T}}) where {T} = IteratorEltype(T)
121
last(r::Reverse) = first(r.itr) # the first shall be last
122
123
# Fallback method of `iterate(::Reverse{T})` which assumes the collection has `getindex(::T) and `reverse(eachindex(::T))`
124
-# don't propagate inbounds for this just in case
125
@propagate_inbounds function iterate(A::Reverse, state=(reverse(eachindex(A.itr)),))
126
y = iterate(state...)
127
y === nothing && return y
0 commit comments