The codomain of a function is , the set of possible outputs for the function. For example, the codomain of concat is the set of all strings, and the codomain of the function is the set of all numbers.
Visualizing a function as a map that takes every point in an input set to one point in an output set, the codomain is the output set (pictured on the right in blue in the image below).
The codomain of a function is not to be confused with the image of a function, which is the set of points in that can actually be reached by following , and which may not include the whole set . For example, the function defined as has codomain but its image is the positive real numbers, a subset of .