@@ -191,11 +191,11 @@ Base.IndexStyle(::Type{T}) where {T<:LazyAxis} = IndexStyle(parent_type(T))
191
191
192
192
can_change_size (:: Type{LazyAxis{N,P}} ) where {N,P} = can_change_size (P)
193
193
194
- known_first (:: Type{LazyAxis{N,P}} ) where {N,P} = known_offsets (P, static (N))
195
- known_first (:: Type{LazyAxis{:,P}} ) where {P} = 1
194
+ ArrayInterfaceCore . known_first (:: Type{LazyAxis{N,P}} ) where {N,P} = known_offsets (P, static (N))
195
+ ArrayInterfaceCore . known_first (:: Type{LazyAxis{:,P}} ) where {P} = 1
196
196
Base. firstindex (x:: LazyAxis ) = first (x)
197
197
@inline function Base. first (x:: LazyAxis{N} ):: Int where {N}
198
- if known_first (x) === nothing
198
+ if ArrayInterfaceCore . known_first (x) === nothing
199
199
return Int (offsets (parent (x), static (N)))
200
200
else
201
201
return Int (known_first (x))
208
208
return known_first (x)
209
209
end
210
210
end
211
- known_last (:: Type{LazyAxis{N,P}} ) where {N,P} = known_last (axes_types (P, static (N)))
212
- known_last (:: Type{LazyAxis{:,P}} ) where {P} = known_length (P)
211
+ ArrayInterfaceCore . known_last (:: Type{LazyAxis{N,P}} ) where {N,P} = known_last (axes_types (P, static (N)))
212
+ ArrayInterfaceCore . known_last (:: Type{LazyAxis{:,P}} ) where {P} = known_length (P)
213
213
Base. lastindex (x:: LazyAxis ) = last (x)
214
214
Base. last (x:: LazyAxis ) = _last (known_last (x), x)
215
215
_last (:: Nothing , x) = last (parent (x))
0 commit comments