Created
March 22, 2011 22:30
-
-
Save kings13y/882224 to your computer and use it in GitHub Desktop.
Variable pattern matching example
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 x = "someVariable" | |
x match { | |
case xVarBound => "matched your variable.. it's value is: " + xVarBound | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment