Created
July 6, 2017 05:51
-
-
Save AkshayChordiya/f759a4431406aff46640b99bf8ea5e78 to your computer and use it in GitHub Desktop.
Example of Also function in Kotlin
This file contains hidden or 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
val person = Person().also { | |
it.name = "Tony Stark" | |
it.age = 52 | |
// More such stuff | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment