from typing import List
import functools
import operator


def flatten(lst: list) -> List:
    """flatten the list of lists.
    :param lst: list of lists
    :return: flattened list
    """
    return functools.reduce(operator.iconcat, lst, [])