Read Levin's chapter on functions. Go over the exercises at the end. Note that Levin skips over the more general notion of relation -- he comes to it in a later stage, though. We will talk about ...
This is a java program that demonstrates many basic functions in discrete mathematics and set theory. The class FunctionsChapter3Style uses OrderedPair objects within its methods.