I was reading up on functions and different types of functions.
From wikipedia :
A function is a process or a relation that associates each element x of a set X, the domain of the function, to a single element y of another set Y
Surjective function:
a function f from a set X to a set Y is surjective (or onto), or a surjection, if for every element y in the codomain Y of f there is at least one element x in the domain X of f such that f(x) = y. It is not required that x be unique; the function f may map one or more elements of X to the same element of Y.
Can someone explain how these two definitions does not contradict eachother?