Is there an elegant way to run a Generator? What I want is this:
>@run println(i) for i in 1:3 1 2 3
By the following definition I can get pretty close:
>macro run(ex) :(for x in ($ex); end) end >@run (println(i) for i in 1:3)
- Is this as efficient as a for loop?
- Can I get rid of the parens?