To null or not to null

Report a typo

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?

Select one option from the list
___

Create a free account to access the full topic