Last active
February 27, 2016 14:32
-
-
Save jocoone/18c3db9f5e990e676a69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rx.Observable.range(0, 10) //representing the pipeline | |
.filter(drop => drop % 2 === 0) | |
.map(drop => drop + 2) | |
.sum() // as in putting water in a bucket | |
.subscribe((bucket) => console.log(bucket)); // 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment