Syntactic sugar for generators