Details
Description
The (count >= limit) should be put up front in the reduce method of the generator, because that way when the limit is reached the reduce method will return faster.
The (count >= limit) should be put up front in the reduce method of the generator, because that way when the limit is reached the reduce method will return faster.