Created
July 4, 2013 13:19
-
-
Save kusano/5927660 to your computer and use it in GitHub Desktop.
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
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