Last active
July 21, 2017 11:21
-
-
Save AkshayChordiya/7776a54528e4d5f26c06659b8f829346 to your computer and use it in GitHub Desktop.
Example of let function in Kotlin
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
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