Mathematics, Discrete Mathematics, Programming.
function can also be surjective (otherwise referred to as onto). If we have a function f: a → b recall that a represents a set of possible inputs the function takes and b represents a set of all possible outputs the function can have. A function is surjective if, for all possible values in set B,