The map operator takes a lambda that applies a transformation for each value from the upstream. The map function can be used to change the values of the primitive values, or to transform an instance from one type to another.
The following diagram shows how this works:
The map function takes another function that describes how an element from the upstream should be transformed.