Implement the function getEvenNumbers(mutableIterator: MutableIterator<Int>), which takes an iterator of a mutable list of numbers as a parameter and returns a list of even numbers.
For loop and iterables
Even numbers
Report a typo
Write a program in Kotlin
fun getEvenNumbers(mutableIterator: MutableIterator<Int>): List<Int> {
// put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.