File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " ArrayInterface"
2
2
uuid = " 4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3
- version = " 3.1.6 "
3
+ version = " 3.1.7 "
4
4
5
5
[deps ]
6
6
IfElse = " 615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
Original file line number Diff line number Diff line change 399
399
const OptionallyStaticRange = Union{<: OptionallyStaticUnitRange ,<: OptionallyStaticStepRange }
400
400
401
401
Base. eachindex (r:: OptionallyStaticRange ) = r
402
- @inline Base. iterate (r:: OptionallyStaticRange ) = (fi = Int (first (r)); (fi, fi))
402
+ @inline function Base. iterate (r:: OptionallyStaticRange )
403
+ isempty (r) && return nothing
404
+ fi = Int (first (r));
405
+ fi, fi
406
+ end
403
407
404
408
Base. to_shape (x:: OptionallyStaticRange ) = length (x)
405
409
Base. to_shape (x:: Slice{T} ) where {T<: OptionallyStaticRange } = length (x)
You can’t perform that action at this time.
0 commit comments