Which operations return true?

Report a typo

In the following code, we have an empty list – a list with zero elements. Select the lines that return true:

println(emptyIntList.any { x -> x % 2 == 0 })  // a
println(emptyIntList.none { x -> x % 2 == 0 }) // b
println(emptyIntList.all { x -> x % 2 == 0 })  // c
Select one or more options from the list
___

Create a free account to access the full topic