Closed carstenbauer closed 1 day ago
I would go for eachindex
, but any option is fine.
I think this is better, because it works with chunks(rand(10); size=2)
as well:
eachindex(ec::Enumerate{<:Chunk}) = Base.OneTo(length(ec.itr))
PR: https://github.com/JuliaFolds2/ChunkSplitters.jl/pull/42
Released in 2.5.0 just now.
I want this to work:
Deeper reason is that we use
eachindex
in OhMyThreads.jl and the above is required for the following to work:As a simple solution, we could define
or, alternatively,
Base.eachindex
directly.