cadCAD/cadCAD/distroduce/utils/__init__.py

3 lines
71 B
Python

def flatten(l):
return [item for sublist in l for item in sublist]