Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
scottbessler
on Jan 23, 2011
|
parent
|
context
|
favorite
| on:
Ruby and Python: pivot points
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
on Jan 25, 2011
[–]
It is, but I don't get to show you the result of the chain that way. :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: