Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pattern matching example
def matchTest(x: Int): String = x match {
case 1 => "one"
case 2 => "two"
case _ => "many"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.