Define a function as a set of ordered pairs.