-
-
Save evgeniy-aksyonov/f1d4890b7f632b187549b018a160cd80 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