Two-to-one function (source code)

= Two-to-one function

A function is two-to-one when every element of its image has exactly two preimages.