from functools import reduce


def compose(*args):
    """Composes all the given function in one."""
    return reduce(lambda fun, tion: lambda arg: fun(tion(arg)),
                  args,
                  lambda arg: arg)