Skip to content

Instantly share code, notes, and snippets.

@cassiozen
Created November 29, 2018 00:34
Show Gist options
  • Save cassiozen/c4a35a43eadeda7c89bc7a4338c30bd6 to your computer and use it in GitHub Desktop.
Save cassiozen/c4a35a43eadeda7c89bc7a4338c30bd6 to your computer and use it in GitHub Desktop.
val len = if (nullableGreeting != null) {
nullableGreeting.length
} else {
0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment