The first place where you can find this construction is collection API

val simpleAddFive:Int=>Int = i => i+5List(1,2,3).map(simpleAddFive)

Return a Function

The same as we can pass a function to other function we can also return a function. This is very handy when we want to modify given function so it fits composition or if we want to inject initial data into function.

Here we have an example of function which adds provided value to fixed initial value