We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter
enumerate
MWE:
a = [1,2,3] filter(isodd, a) map(((x,i),)->isodd(x), enumerate(a)) # errors filter(((x,i),)->isodd(x), enumerate(a))
The problem is that filter is not defined for Any.
Any
The text was updated successfully, but these errors were encountered:
Full error message on Julia 1.7:
julia> filter(((x,i),)->isodd(x), enumerate(a)) ERROR: MethodError: no method matching filter(::var"#3#4", ::Base.Iterators.Enumerate{Vector{Int64}}) Closest candidates are: filter(::Any, ::Tuple) at /Applications/Julia-1.7 x86.app/Contents/Resources/julia/share/julia/base/tuple.jl:363 filter(::Any, ::Array{T, N}) where {T, N} at /Applications/Julia-1.7 x86.app/Contents/Resources/julia/share/julia/base/array.jl:2479 filter(::Any, ::AbstractDict) at /Applications/Julia-1.7 x86.app/Contents/Resources/julia/share/julia/base/abstractdict.jl:431 ... Stacktrace: [1] top-level scope @ REPL[13]:2
Sorry, something went wrong.
Xref issue #37146 and PR #37195.
No branches or pull requests
MWE:
The problem is that
filter
is not defined forAny
.The text was updated successfully, but these errors were encountered: