def car(pair):
    """Return the first element of a pair created with `cons`

    param pair: A pair that was created with `cons`
    returns: The first element of the pair
    """

    def fst(x, _):
        return x

    return pair(fst)