Functions in Kotlin
Functions are central in Kotlin. We’ll learn about functions with a few different examples.
To run the program, save it as functions.kt
and use the Kotlin compiler:
There are several other features to Kotlin functions. One is multiple return values, which we’ll look at next.