Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Functional solution in Uncategorized category for Flatten a List by nickie
from itertools import chain
flat_list = lambda l: [l] if isinstance(l, int) else list(chain.from_iterable(flat_list(x) for x in l))
April 24, 2014
Comments: