O'Reilly logo

Reactive Android Programming by Tadas Subonis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Map

The .map() operator is one of the most basic operators available, and so it is a perfect candidate to start the example list with.

As we discussed earlier, the first line represents the original Observable and the items on the line are the values that will be emitted by the Observable in the specified order. At the very end of the sequence, there is a termination symbol.

In particular, we are interested in the operation that is being applied here. Let's take a look at the following diagram:

The following block represents the .map() operation being applied:

It says that the elements are transformed by changing the form of a circle into ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required