This repository has been archived on 2020-03-29. You can view files and clone it, but cannot push or open issues or pull requests.
sampy_archive/sampy/helpers/dataHelper.py

3 lines
110 B
Python
Raw Normal View History

2018-09-26 08:41:50 +02:00
def flatten(l):
return flatten(l[0]) + (flatten(l[1:]) if len(l) > 1 else []) if type(l) is list else [l]