function composition

Function composition is the process of using the output of one function as an input of another function. In mathematics, function composition is denoted by f{g(x)} where g() is a function and its output is used as an input of another function, that is, f().
Function composition can be implemented using any two functions, provided the output type of one function matches with the input type of the second function.