Kotlin – How to pass function as parameter
Recently, I've noticed that there are a few different ways to pass a function as parameter. In this post I will use 2 functions: sum and divide. We have to declare the sum function, in such way that it can receive the divide function as argument. The most common and often more convenient (according to…