4 ms·
I may be missing something, but why isn't skipping your list comprehension maintaining the benefit of using a generator? >>> from itertools import chain
by scottbessler 16y ago
I may be missing something, but why isn't skipping your list comprehension maintaining the benefit of using a generator?
>>> from itertools import chain
>>> chain(*[['a', 'b', 'c'], ['d', 'e', 'f']])
- dgouldin 16y agoIt is, but I don't get to show you the result of the chain that way. :)