October 2021
Intermediate to advanced
500 pages
16h 23m
English
In Chapter 4, you saw how to define functions in Kotlin by naming them and how to call them by name. In this chapter, you will see another way to define functions. This new type of function definition will let you treat a function as a value – much like the way you use String and Int. With this new style of function definition, you will be able to store functions inside variables, pass functions into other functions, and return functions from functions.
To see these concepts in action, you will begin building a project called NyetHack, which you will work on through Chapter 19.
Read now
Unlock full access