import typing
import itertools


def concat(xss: typing.Iterable[typing.Iterable[typing.Any]]
           ) -> typing.Iterator[typing.Any]:
    """Concat an iterable of iterables."""
    return itertools.chain.from_iterable(xs for xs in xss)