Add a generalized notion of mapReduce for Generators