Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
gcx11_mine/2 solution in Clear category for Flatten a List by gcx11
#array result value
def flat_list(a):
r = []
for v in a:
if type(v) == list:
r.extend(flat_list(v))
else:
r.append(v)
return r
May 5, 2014
Comments: