import typing
import itertools


def concat(xss: typing.Iterable[typing.Iterable[typing.Any]]
           ) -> typing.List[typing.Any]:
    """
    Concatenates a list of lists.
    """
    return list(itertools.chain.from_iterable(xs for xs in xss))