Scala Reactive Programming
上QQ阅读APP看书,第一时间看更新

Important FRP operators

We will draw Marble diagrams for the following important and frequently used FPP operations:

  • The map() function
  • The flatMap() function
  • The merge() function
  • The filter() function
  • The reduce() function
  • The concat() and sorted() functions

As a Scala developer, I hope you are clear about how these functions (or operations or operators) work. If you are new to these functions, refer to Chapter 2, Functional Scala, which explains these functions in detail with some simple examples.

Let's start with the map() function first.