Created
June 4, 2017 06:36
-
-
Save agustarc/b3dd415f7718f10321026c1a050d59a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
when(x) { | |
1 -> print("x is 1") | |
2 -> print("x is 2") | |
else -> { | |
print("x neither 1 nor 2") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment