flatten

flatten(l: Sequence[Any]) Iterator[Any][source]

Flatten a list of lists into a single list without pipelineaq.QAScore.

Example: >>> obj = flatten([1,2,[3,4,[5,6]],7]) >>> obj.__next__() 1 >>> obj.__next__() 2 >>> obj.__next__() 3

>>> list(flatten([1,2,['c',4,['e',6]],7]))
[1, 2, 'c', 4, 'e', 6, 7]
Parameters:

l -- A list with list or any object.

Yields:

Single list.