Created
November 30, 2018 15:19
-
-
Save tasaquino/9c1d9b9627d45396dd09c5caa42cd0df to your computer and use it in GitHub Desktop.
Scoping Function - also example 2
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.also { p -> | |
p.profession = "Iron Man" | |
p.nickname = "Tony" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment