Filter

Report a typo

Complete the evenFilter() function that takes a Set of Int and returns a new set containing only the even elements from that set. Don't use the += operator: work with MutableSet because it is faster than reassigning.

Sample Input 1:

1 2 3 4 5 6 7 8

Sample Output 1:

2 4 6 8
Write a program in Kotlin
fun evenFilter(numbers: Set<Int>): Set<Int> {
// put your code here
}
___

Create a free account to access the full topic