Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
iterative_while solution in Clear category for Flatten a List by ciel
def flat_list(a):
while True:
b=[]
for e in a:
try:
b+=e
except TypeError:
b.append(e)
if b==a: return b
a=b
April 25, 2014
Comments: