Easy Operators
Transform with Map
Create a Flux emitting 1, 2, 3, 4, 5. Use the map operator to square each number, then subscribe and print each result on a new line.
The map() operator applies a synchronous transformation to each element.
Expected
1 4 9 16 25
DOJO PETYour little coding companion
Main.kt