July 2018
Intermediate to advanced
242 pages
8h 6m
English
First, let's explore the characteristics of the run() function defined in the standard library with the following function header:
public inline fun <T, R> T.run(block: T.() -> R): R
It is declared as an extension function for a generic type. The run function provides implicit this parameter inside the block argument and returns the result of the block execution.
Read now
Unlock full access