Y
Hacker News
new
|
ask
|
show
|
jobs
by
scottbessler
5627 days 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']])
1 comments
dgouldin
5625 days ago
It is, but I don't get to show you the result of the chain that way. :)
link