Replace each value in a stream using a function (like Array.map)
The mapping function receives the current index (zero-based) as well as the current value.
Replace each value in a stream using a function (like Array.map)
The mapping function receives the current index (zero-based) as well as the current value.