Skip to content

Instantly share code, notes, and snippets.

@kusano
Created July 4, 2013 13:19
Show Gist options
  • Save kusano/5927660 to your computer and use it in GitHub Desktop.
Save kusano/5927660 to your computer and use it in GitHub Desktop.
def f(n: Int) = {
val One = 1
val Two = 2
n match {
case One => "A"
case Two => "B"
}
}
def g(n: Int) = {
val one = 1
val two = 2
n match {
case one => "A"
case two => "B"
}
}
println(f(2))
println(g(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment