Chapter 4. Functions
The following recipes will be covered in this chapter:
- Specifying default values in functions
- Using named arguments in functions
- Creating the
RecyclerView
Adapter in Kotlin - Creating getter setters in Kotlin
- Passing variable arguments to a function
- Passing a function as a parameter to another
- Declaring a
static
function - Using the
use
keyword in Kotlin - Working with Closure in Kotlin
- Function literals with receivers
- Working with anonymous functions