Understanding advanced functions

In functional programming languages, functions are generally treated as first-class citizens of the language. This is true in Kotlin, which supports top-level functions as well as higher-order functions, meaning that functions can be treated as inputs and outputs of other functions.

In this section, we'll explore two important aspects of higher-order functions in Kotlin. These are as follows:

Through these sections, we'll gain an improved understanding of how to efficiently use higher-order functions in our code, and how the Kotlin standard library is built.