Greetings, I see a different behavior for filter on tasks and ranges.
If I do
for n = filter(iseven, 1:10)
println(n)
end
I get 2,4,6,8
However if I do
function ints()
for i = 1:10
produce(i)
end
end
for n = filter(iseven, @task ints())
println(n)
end
I get 3,5,7,9
Why is that?
(I noticed that if I change the code to collect(@task ints()) the code
works as expected).
Thanks,
--
Miki
