@@ -243,7 +243,7 @@ indices calling [`to_axis`](@ref).
243
243
@inline function to_axes (A, inds:: Tuple )
244
244
if ndims (A) === 1
245
245
return (to_axis (axes (A, 1 ), first (inds)),)
246
- elseif dynamic ( length (inds) ) === 1
246
+ elseif Base . length (inds) === 1
247
247
return (to_axis (eachindex (IndexLinear (), A), first (inds)),)
248
248
else
249
249
return to_axes (A, axes (A), inds)
@@ -378,14 +378,14 @@ end
378
378
_ints2range (x:: Integer ) = x: x
379
379
_ints2range (x:: AbstractRange ) = x
380
380
@inline function unsafe_get_collection (A:: CartesianIndices{N} , inds) where {N}
381
- if (dynamic ( length (inds) ) === 1 && N > 1 ) || stride_preserving_index (typeof (inds)) === False ()
381
+ if (Base . length (inds) === 1 && N > 1 ) || stride_preserving_index (typeof (inds)) === False ()
382
382
return Base. _getindex (IndexStyle (A), A, inds... )
383
383
else
384
384
return CartesianIndices (to_axes (A, _ints2range .(inds)))
385
385
end
386
386
end
387
387
@inline function unsafe_get_collection (A:: LinearIndices{N} , inds) where {N}
388
- if dynamic ( length (inds) ) === 1 && isone (_ndims_index (typeof (inds), static (1 )))
388
+ if Base . length (inds) === 1 && isone (_ndims_index (typeof (inds), static (1 )))
389
389
return @inbounds (eachindex (A)[first (inds)])
390
390
elseif stride_preserving_index (typeof (inds)) === True ()
391
391
return LinearIndices (to_axes (A, _ints2range .(inds)))
0 commit comments