working with ES6 iterables, array comprehension, and generator comprehension