Skip to content

Instantly share code, notes, and snippets.

@AkshayChordiya
Last active July 21, 2017 11:21
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 AkshayChordiya/7776a54528e4d5f26c06659b8f829346 to your computer and use it in GitHub Desktop.
Save AkshayChordiya/7776a54528e4d5f26c06659b8f829346 to your computer and use it in GitHub Desktop.
Example of let function in Kotlin
person?.let {
// person object is not null in here
it.name = "Tony Stark"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment