July 2018
Intermediate to advanced
242 pages
8h 6m
English
Let's assume we can fetch the date using the following function:
fun getPlayers(): List<Player>?
Here, the Player class is defined like this:
data class Player(val name: String, val bestScore: Int)
We would like to perform the following sequence of operations to the getPlayers() function result:
In order to accomplish the task, first, we need to get familiar with the characteristics of the let, also, and apply functions. They are provided ...
Read now
Unlock full access