A technical definition of a function is: a relation from a set of inputs to a set of possible outputs where each input is related to exactly one output.
In this case, it would be a function
3.6m questions
4.5m answers