Created
April 1, 2019 13:21
-
-
Save agustarc/f87b538e67e9ff6bc75d6fb6f690fb67 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
return if (x) foo() else bar() | |
return when(x) { | |
0 -> "zero" | |
else -> "nonzero" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment