Created
January 31, 2020 22:37
-
-
Save kwalrath/f83971283712e09dbc35c30507fb6bbf 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
NumberCreator().stream | |
.where((i) => i % 2 == 0) | |
.map((i) => 'String $i') | |
.listen(print); | |
/* | |
OUTPUT: | |
String 2 | |
String 4 | |
String 6 | |
String 8 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment