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
There is a problem when trying to collect the result of a method returning an enumerator, this was alluded in #13772.
julia> collect(take(countfrom(),1))
1-element Array{Int64,1}:
1
julia> collect(enumerate(take(countfrom(),1)))
ERROR: MethodError: `length` has no method matching length(::Base.Take{Base.Count{Int64}})
in collect at array.jl:253
in collect at array.jl:272
julia> collect(zip(take(countfrom(),1),take(countfrom(),1)))
ERROR: MethodError: `length` has no method matching length(::Base.Take{Base.Count{Int64}})
in collect at array.jl:253
in collect at array.jl:272
The problem probably also exists for methods that expect length to be defined for their arguments.
The text was updated successfully, but these errors were encountered:
There is a problem when trying to collect the result of a method returning an enumerator, this was alluded in #13772.
The problem probably also exists for methods that expect length to be defined for their arguments.
The text was updated successfully, but these errors were encountered: