Nested lists, simple though

Diez B. Roggisch deets at nospam.web.de
Mon Apr 21 09:59:20 EDT 2008


> The first idea that comes to mind is reduce(lambda x, y: x + y,
> list_of_lists, [])

Which is not helping for arbitrary nested lists, as the OP wanted.

Diez



More information about the Python-list mailing list