From 15363ffa0789bab101ecbf4705dfd025b933f3aa Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 8 Jul 2026 21:33:33 +0200 Subject: [PATCH] get rid of non-needed `AbstractArray` definitions identical to the fallback --- src/lazy_iterators.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lazy_iterators.jl b/src/lazy_iterators.jl index f60bae46..40159a0b 100644 --- a/src/lazy_iterators.jl +++ b/src/lazy_iterators.jl @@ -43,8 +43,6 @@ end Base.size(it::LazyMap) = size(it.data) -Base.length(it::LazyMap) = length(it.data) - function Base.iterate(it::LazyMap, args...) elem_state = iterate(it.data, args...) if elem_state === nothing @@ -54,10 +52,6 @@ function Base.iterate(it::LazyMap, args...) end end -Base.IteratorSize(it::LazyMap) = Base.IteratorSize(it.data) - -Base.eltype(::LazyMap{T}) where {T} = T - Base.getindex(it::LazyMap, i::Integer) = it.f(getindex(it.data, i)) function Base.getindex(it::LazyMap{T}, I::AbstractVector) where {T} return LazyMap{T}(it.f, getindex(it.data, I))