It is often necessary to convert data from one format to another. The reactor provides a vast set of operators to achieve this. Not only can we convert data but we can modify the amount of data elements as well.
Converting data
The map() operator
From the preceding Fibonacci example that was used to explain the skip() operator, suppose that we want to convert the first 10 elements into Roman numeral equivalents.
Roman numerals are represented by seven letters: I, V, X, L, C, D, and M. These letters represent 1, 5, 10, 50, 100, 500, and 1,000, respectively. The seven letters can be combined to represent thousands of numbers. The Roman numeral scheme used letters as tally markers. Markers were combined to represent unit values...