Working with functional types

As we've seen previously in this book, Kotlin supports functions as data types. This allows us to do two things:

In this section, we're going to examine each of these in more detail.