I thought that itertools.chain.from_iterable isn't useful.
cuz this only allow "single-nested iterable -- this will raise error when
arg has non-nested element--" like below::
>>> from itertools import chain
>>> chain.from_iterable([1])
>>> list(_)
Traceback (most recent call last):
File "",
I thought that itertools.chain.from_iterable isn't useful.
cuz this only allow "single-nested iterable -- this will raise error when
arg has non-nested element--" like below::
>>> from itertools import chain
>>> chain.from_iterable([1])
>>> list(_)
Traceback (most recent call last):
File "",