As we've seen previously in this book, Kotlin supports functions as data types. This allows us to do two things:
- Store functions as variables and properties
- Pass functions as arguments to other functions
In this section, we're going to examine each of these in more detail.