Easy Operators
Filter Even Numbers
Create a Flux emitting integers 1 through 10. Use the filter operator to keep only even numbers. Subscribe and print each on a new line.
filter() tests each element against a predicate, only passing through those that match.
Expected
2 4 6 8 10
DOJO PETYour little coding companion
Main.kt