Skip to content

Instantly share code, notes, and snippets.

@jacobappleton
Created August 17, 2015 04:17
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