With a solid understanding of iterators, seeing the benefits of using generators becomes much more obvious. Generators allow us to write iterators with a much more concise syntax and give us more flexibility with each iteration.
createReverseIterator is not used by the function in this example