January 2018
Intermediate to advanced
434 pages
14h 1m
English
Kotlin gives us the power to declare high-order functions. In a high-order function, we can pass and return functions as parameters. This is an extremely useful feature and makes our code much more easy to work with. In fact, many of the Kotlin library’s functions are high order, such as map. In Kotlin, we can declare functions and function references as values that are then passed in to the function. In this section, we will first understand how to declare lambdas and then how to pass them into a function.
Read now
Unlock full access