A function is a rule that maps each element in one set (the domain) to exactly one element in another set (the co-domain or range). Diagrams 1-4 show examples of mappings, with Diagrams 1, 2, and 4 representing functions and Diagram 3 not representing a function because element a in the domain is not mapped to anything in the co-domain. Functions can also be written as sets of ordered pairs, with the property that no two ordered pairs have the same first element but different second elements.