def uncurry(fun_f):
    """
    Transform a function into a function taking one pair argument.

    :param fun_f: function taking two arguments
    :return: function taking one pair argument
    """
    return lambda pair: fun_f(pair[0], pair[1])