Kotlin - Variables and Type System
You need a Kotlin function that returns an immutable list of the first five even numbers. Which function implementation ensures the returned list cannot be modified?
List is immutable, MutableList is mutable.List using listOf.listOf for immutable lists [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions