Created
September 28, 2019 10:52
-
-
Save Armenvardanyan95/6f5bf3195a0fa59028dd96a6f8b8ffee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const [evens, odds] = partition( | |
| of(1, 2, 3, 4).pipe( | |
| map(n => n * 3), | |
| ), | |
| n => n % 2 === 0, | |
| ); | |
| evens.subscribe(n => console.log('Even number:', n)); | |
| odds.subscribe(n => console.log('Odd number', n)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment