The map operator

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.

..................Content has been hidden....................

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