-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
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(::Function, ::Tuple) is not defined #30418
Comments
Idem with filter(BitArray, itr)
filter(Vector{Bool}, itr) patching struct Filter{F,I}
flt::F
itr::I
end with struct Filter{F<:Function,I}
flt::F
itr::I
end can do the trick for my 2 cts. The problem may be restated: shall the base do it -or- shall it let us do it when needed. If the compiler handles this issue by catching all the call eg. |
Have you notice that @test tuple(Iterators.filter(isodd, (1, 2, 3, 4, 5))...) == (1,3,5)
Test Passed works ? |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should be defined? It would be consistent with the other methods:
I get that it's not a type-stable operation except in special cases like
filter(isa(Int), (2,3.0,4))
, but it would still be occasionally convenient.The text was updated successfully, but these errors were encountered: