February 2018
Intermediate to advanced
552 pages
13h 46m
English
In Scala, the map() function performs the following steps one by one:
In the Reactive World, we can call this container a data stream, as it emits or consumes the data (or data elements).
Here's the Scala sample code for the map() function:
scala> val numList = List(1,2,3,4,5) numList: List[Int] = List(1, 2, 3, 4, 5) scala> val squaredNumList = numList.map( x => x*x ) squaredNumList: List[Int] = List(1, 4, 9, 16, 25)
Here, the ...
Read now
Unlock full access