Easy Operators
Transform with Map
Traducción al español en progresoEl contenido detallado de esta lección aún se está traduciendo. Mientras tanto, se muestra en inglés.
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.
Esperado
1 4 9 16 25
Main.kt