def cons(a, b):
    """Create a pair from the elements a and b

    param a: The first element in the tuple
    param b: The second element in the tuple
    returns: A pair created from a and b
    """

    def pair(f):
        return f(a, b)

    return pair