Hacker News new | ask | show | jobs
by alfons_foobar 614 days ago
This.

I often use generator expressions for the intermediate values (so I don't allocate a new list for each step), but I find this to be much more readable.