@@ -134,7 +134,7 @@ can_setindex(::Type{<:AbstractDict}) = true
134
134
can_setindex (:: Type{<:Base.ImmutableDict} ) = false
135
135
can_setindex (@nospecialize T:: Type{<:Tuple} ) = false
136
136
can_setindex (@nospecialize T:: Type{<:NamedTuple} ) = false
137
- can_setindex (:: Type{<:Base.Pairs{<:Any,<:Any,P}} ) where {P} = can_setindex (P)
137
+ can_setindex (:: Type{<:Base.Iterators. Pairs{<:Any,<:Any,P}} ) where {P} = can_setindex (P)
138
138
139
139
"""
140
140
aos_to_soa(x)
@@ -408,13 +408,13 @@ end
408
408
409
409
Returns a new instance of `collection` with the item at the given `index` removed.
410
410
"""
411
- @propagate_inbounds function deleteat (collection:: AbstractVector , index)
411
+ Base . @propagate_inbounds function deleteat (collection:: AbstractVector , index)
412
412
@boundscheck if ! checkindex (Bool, eachindex (collection), index)
413
413
throw (BoundsError (collection, index))
414
414
end
415
415
return unsafe_deleteat (collection, index)
416
416
end
417
- @propagate_inbounds function deleteat (collection:: Tuple{Vararg{Any,N}} , index) where {N}
417
+ Base . @propagate_inbounds function deleteat (collection:: Tuple{Vararg{Any,N}} , index) where {N}
418
418
@boundscheck if ! checkindex (Bool, StaticInt {1} (): StaticInt {N} (), index)
419
419
throw (BoundsError (collection, index))
420
420
end
@@ -573,7 +573,7 @@ Base.firstindex(i::Union{BidiagonalIndex,TridiagonalIndex}) = 1
573
573
Base. lastindex (i:: Union{BidiagonalIndex,TridiagonalIndex} ) = i. count
574
574
Base. length (i:: Union{BidiagonalIndex,TridiagonalIndex} ) = lastindex (i)
575
575
576
- @propagate_inbounds function Base. getindex (ind:: BidiagonalIndex , i:: Int )
576
+ Base . @propagate_inbounds function Base. getindex (ind:: BidiagonalIndex , i:: Int )
577
577
@boundscheck 1 <= i <= ind. count || throw (BoundsError (ind, i))
578
578
if ind. isup
579
579
ii = i + 1
@@ -583,7 +583,7 @@ Base.length(i::Union{BidiagonalIndex,TridiagonalIndex}) = lastindex(i)
583
583
convert (Int, floor (ii / 2 ))
584
584
end
585
585
586
- @propagate_inbounds function Base. getindex (ind:: TridiagonalIndex , i:: Int )
586
+ Base . @propagate_inbounds function Base. getindex (ind:: TridiagonalIndex , i:: Int )
587
587
@boundscheck 1 <= i <= ind. count || throw (BoundsError (ind, i))
588
588
offsetu = ind. isrow ? 0 : 1
589
589
offsetl = ind. isrow ? 1 : 0
0 commit comments