Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
yield from solution in Speedy category for Flatten a List (generator version) by dobyvillanueva
def flat_list(array):
for a in array:
(yield from flat_list(a)) if isinstance(a, list) else (yield a)
June 6, 2019
Comments: