def curry(f):
    """
    Convert a two-parameter function into two one-parameter functions. Curried
    functions will allow the partial application of arguments to form new
    functions.

    ((a, b) -> c) -> a -> b -> c
    """
    return lambda a: lambda b: f(a, b)