More syntactic sugar for generators