Easy & Lazy way to flatten a python list
Posted on 13 Nov, 2021
itertools.chain.from_iterable
would work lazily, i.e no work done unless you loop over the returned iterator
Last updated
Posted on 13 Nov, 2021
itertools.chain.from_iterable
would work lazily, i.e no work done unless you loop over the returned iterator
Last updated