Created
October 30, 2018 06:00
-
-
Save aashritag/e8c0b21699296c44cac38e366737dce6 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
val source: Source[Int, NotUsed] = Source(1 to 10) | |
source.filter(_ % 2 == 0).runForeach(println) | |
source.filter(_ % 2 != 0).runForeach(println) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment