Created
January 21, 2021 10:22
-
-
Save SebastianAas/5a65f6641e70f1f5219d820adaff330e to your computer and use it in GitHub Desktop.
Example Desugar
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
def example() = { | |
val a1 = Set(1, 2, 3) | |
val b2 = Set(1, 2, 3) | |
a1 | |
.flatMap(x => | |
b2 | |
.withFilter(y => y > 2) | |
.map(y => x + y) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment