Skip to content

Instantly share code, notes, and snippets.

@tasaquino
Created November 30, 2018 15:26
Show Gist options
  • Save tasaquino/3d54abf53643c7ab5b425f7e3f8e435b to your computer and use it in GitHub Desktop.
Save tasaquino/3d54abf53643c7ab5b425f7e3f8e435b to your computer and use it in GitHub Desktop.
Scoping Functions - example validating null object
val nullablePerson: Person? = attPair?.let {
mapToPerson(it)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment