Hacker News new | ask | show | jobs
by toyg 3431 days ago
I've not tried, but you can probably get that by recursively mixing standard constructs and functools.chain.from_iterable().
1 comments

You should try. It's harder than it seems.

(I mean, it's not the most challenging problem ever, but most programmers look at it and go "that's trivial, just do X!", and it's a bit trickier than that).