Created
July 6, 2017 05:52
-
-
Save AkshayChordiya/0dc71412fbb6543892b21c10b5f85b5e to your computer and use it in GitHub Desktop.
Example of Also function with name 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 { p -> | |
p.name = "Tony Stark" | |
p.age = 52 | |
// More such stuff | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment