Cédric Soulas
I make motion graphics with RxJS. I code apps with JavaScript and Elm. I will be available for freelance work from mid-April 2018. Get in touch!

Ep. 6 Ep. 8 Newsletter Watch all Source on Github

Episode 7 - combineLatest vs merge Monday, 30 Oct.

In Episode 5 you have discovered the combining streams category and merged two input streams. Today, I show you a second card from this category: ❚ combineLatest.

Let’s compare this card with ❚ merge, used on the same input streams:

On the one hand, ❚ merge doesn’t need a project function, as it doesn’t change the event values (learn more about project functions in Episode 2).

On the other hand, ❚ combineLatest accepts a project function to combine two values (or more) into a new one, noted figuratively ⚬ ⟶ ⚭ ⟵ ⚬.

This is how ❚ combineLatest operates with two (or more) input streams:

You now know two different ways of combining streams 🙌. Next Monday, I’ll show you a third card that combines streams!

Ep. 6 Ep. 8 Newsletter Watch all Source on Github

reactive.how list of animated cards

Learn Reactive Programming

Focus on one new concept – every Monday

Occasional updates, plus:

Cédric Soulas
I make motion graphics with RxJS. I code apps with JavaScript and Elm. I will be available for freelance work from mid-April 2018.