import functools
import operator


def flatten(laundry):
    """
    Flattens a list

    Args:
        laundry (iterable): list to flatten

    Returns:
        (list): Flattened list.
    """
    return functools.reduce(operator.iconcat, laundry, [])