Consider the following code:
val list = listOf(0, 2, 0, 4, 7)
val num = list.firstOrNull { it < 10 }
What value will the variable num take?
Consider the following code:
val list = listOf(0, 2, 0, 4, 7)
val num = list.firstOrNull { it < 10 }
What value will the variable num take?
Create a free account to access the full topic