Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

We use several types of notation for functions:

f:ABThe function f maps A to B
f(a) = bwhere aA and bB