Created
October 11, 2020 20:21
-
-
Save deanwampler/852ab4ea8487b9579980bc1ab9dc9b18 to your computer and use it in GitHub Desktop.
Scala 2 vs. 3 braceless syntax: match expressions
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
0 match { | |
case 0 => "zero" | |
case _ => "other value" | |
} | |
0 match | |
case 0 => "zero" | |
case _ => "other value" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment