working with ES6 iterable objects, array comprehension, and generator comprehension