concept inverse function in category kotlin

appears as: inverse functions, n inverse function, inverse function
The Joy of Kotlin

This is an excerpt from Manning's book The Joy of Kotlin.

3.1.2 An overview of inverse functions in Kotlin

A function may or may not have an inverse function. If f(x) is a function from A to B (A being the domain and B the codomain), the inverse function is noted as f-1(x) and has B as its domain and A as its codomain. If you represent the type of the function as A –> B, the inverse function (if it exists) has the type B –> A.