Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Twiddling my thumbs solution in Clear category for Flatten a List (iterator version) by veky
def flat_list(l):
for x in l: yield from [x] if isinstance(x, int) else flat_list(x)
Sept. 6, 2018
Comments: