Created
February 10, 2017 09:49
-
-
Save paraya3636/78c7d15c0cfbea3d2349af83f9fbf6db to your computer and use it in GitHub Desktop.
when-is control by Kotlin
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
val value: T | |
when(value) { | |
is String -> ... | |
is Int -> ... | |
else -> ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment