Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
recursion in 135 chars solution in Clear category for Flatten a List by marcopunteri
def i(l):
return type(l)==int
def flat_list(a):
r = []
for e in a:
r += [e] if i(e) else flat_list(e)
return r
April 20, 2021
Comments: