-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
collect fails to work for all finite iterators #12009
Comments
Probably ... the performance overhead of the |
This seems to work now: julia> collect(enumerate(Iterators.Filter(x -> x>0, randn(10))))
4-element Array{Tuple{Int64,Float64},1}:
(1,0.0895511)
(2,1.58289)
(3,0.35398)
(4,0.496553) |
and is it tested? don't close things that aren't |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Rather than call
applicable
, maybe it would be better to usetry
/catch
?The text was updated successfully, but these errors were encountered: