Closed wilsonwang371 closed 5 months ago
an ugly solution would be:
_listOfLists = [genList(i) for i in inputList]
_listOfLists = [i for sub in _listOfLists for i in sub]
The code is
data = sum([[1, 2], [3, 4]], [])
Can we provide some function like flatten
in the future?
Yes, we do.
Hey @Peefy ,added the PR #325
Closed by #325
General Question
How do I convert [[1, 2], [3, 4]] to [1, 2, 3,4] in kcl?