Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlincollections map filterSingle-choice MCQ

What is the result of this chain?

val nums = listOf(1, 2, 3, 4, 5, 6) val out = nums.filter { it % 2 == 0 }.map { it * it } println(out)