Consider two sets A and B, whose elements may be any objects whatsoever, and suppose that with each element x of A there is associated, in some manner, an element of B, which we denote by f(x). Then f is said to be a function from A to B (or a mapping of A into B).