Created
March 3, 2019 11:45
-
-
Save MarcinMoskala/8111b9aeec378008b61437cb27f0d74b 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
val a = if(predicate) "A" else null | |
val b = when { | |
predicate2 -> "B" | |
predicate3 -> "C" | |
else -> null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment