You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
julia> nth(drop(repeatedly(() -> 1), 1), 1)
ERROR: MethodError: no method matching length(::Iterators.RepeatCallForever)
Closest candidates are:
length(!Matched::SimpleVector) at essentials.jl:168
length(!Matched::Base.MethodList) at reflection.jl:256
length(!Matched::MethodTable) at reflection.jl:322
...
in nth(::Base.Drop{Iterators.RepeatCallForever}, ::Int64) at /home/philipp/.julia/v0.5/Iterators/src/Iterators.jl:497
Since this seems to be due to this line: I can replicate it with
julia> applicable(length, drop(repeatedly(() -> 1), 1))
true
julia> length(drop(repeatedly(() -> 1), 1))
ERROR: MethodError: no method matching length(::Iterators.RepeatCallForever)
Closest candidates are:
length(!Matched::SimpleVector) at essentials.jl:168
length(!Matched::Base.MethodList) at reflection.jl:256
length(!Matched::MethodTable) at reflection.jl:322
...
in length(::Base.Drop{Iterators.RepeatCallForever}) at ./iterator.jl:371
julia> Base.iteratorsize(drop(repeatedly(() -> 1), 1))
Base.IsInfinite()
and I think that checking for IsInfinite somehow should prevent this.
The text was updated successfully, but these errors were encountered:
I run into the following problem in 0.5.1:
Since this seems to be due to this line: I can replicate it with
and I think that checking for
IsInfinite
somehow should prevent this.The text was updated successfully, but these errors were encountered: