Skip to content

Instantly share code, notes, and snippets.

@MarcinMoskala
Created March 3, 2019 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinMoskala/8111b9aeec378008b61437cb27f0d74b to your computer and use it in GitHub Desktop.
Save MarcinMoskala/8111b9aeec378008b61437cb27f0d74b to your computer and use it in GitHub Desktop.
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