Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Nested is better for flatting. solution in Clear category for Flatten a List by veky
def flat_list(array):
def flat(item):
for element in item:
if isinstance(element, list):
yield from flat_list(element)
else:
yield element
return list(flat(array))
July 15, 2018
Comments: