Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
``` julia> iterate(t::Tuple, i=1) = (i > length(t) ? nothing : (t[i], i+1)) julia> function any_iterate(f, y) st = iterate(y) while !(st === nothing) f(st[1]) && return true st = iterate(y, st[2]) end return false end julia> code_typed(any_iterate, typeof((x -> :c == x, (:a, :b)))) ```
- Loading branch information