Simplify the example usage for generator calls