Skip to content

Commit

Permalink
Merge pull request keon#6 from madhab-p/patch-1
Browse files Browse the repository at this point in the history
update flatten.py
  • Loading branch information
keon committed Apr 18, 2017
2 parents 979db2c + 52b37f2 commit 6a2abbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array/flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def list_flatten(l, a=None):
a = list(a) if isinstance(a, (list, tuple)) else []
for i in l:
if isinstance(i, (list, tuple)):
list_flatten(i, a)
a = list_flatten(i, a)
else:
a.append(i)
return a
Expand Down

0 comments on commit 6a2abbe

Please sign in to comment.