Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
val i = 2
i match {
case 0 => println("1")
case 1 => println("2")
case default => println("You gave me: " + default)
}
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.