julia
bb1386a3 - ssair: another bug

Commit
7 years ago
ssair: another bug ``` 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)))) ```
Author
Committer
Parents
Loading