Projection

Here, we can see that our stream is emitting the values 1, 2, 3, and 4, and then a manipulation happens that changes every value by incrementing it by one. This is quite a simple situation. If we consider this as a list, we can see that what we do here is simply a projection, which we would code like this:

let newList = list.map(value => value + 1)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.253.62