travis_commit
This commit is contained in:
@ -6,6 +6,7 @@ Use recursion. Use `list.extend()` with an empty array (`result`) and the spread
|
||||
|
||||
```python
|
||||
|
||||
|
||||
def spread(arg):
|
||||
ret = []
|
||||
for i in arg:
|
||||
@ -20,6 +21,7 @@ def spread(arg):
|
||||
result.extend(spread(list(map(lambda x : deep(x) if type(x) == list else x,arr))))
|
||||
return result
|
||||
|
||||
|
||||
```
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user