PyGen - python style generators

And even better (in my opinion), combining it with short-form function syntax,

f(x) = Channel() do c
    ...
    push!(c, y)
    ...
end

Effectively a macro-free way of defining a python-like generator.

11 Likes