Functions as variables

In Kotlin, functions may be stored and accessed via variables and properties. This means we can define variables and properties designated to reference a specific function signature, and we can then access and modify those functions as needed. Like any type variable in Kotlin, we can define both read-only and mutable function variables, and we will take a look at both of these variations in the following sections.