Even numbers

Report a typo

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.

Write a program in Kotlin
fun getEvenNumbers(mutableIterator: MutableIterator<Int>): List<Int> {
// put your code here
}
___

Create a free account to access the full topic