Created
June 4, 2017 06:49
-
-
Save agustarc/658665868f44f16e6b331d706775e8fa 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) { | |
in 1..10 -> print("x is in the range") | |
!in 10..20 -> print("x is outside the range") | |
else -> print("none of the above") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment