The preceding code does the following:
Here, we generate some data with the range operator (2018 to 2022). This operator returns the sequence of type Flux
With the timestamp operator, we attach the current timestamp. Now, the sequence has the Flux
Here, we apply enumeration with the index operator. Now, the sequence has the Flux
Here, we subscribe to the sequence and log elements. The e.getT1() call returns an index (4.1), and the e.getT2().getT1() call returns a timestamp, which we output in a human-readable way with the Instant class (4.2), while the e.getT2().getT2() call returns an actual value (4.3).