Last active
February 9, 2019 08:06
-
-
Save renaudcerrato/ed4c6e9452ab198d949e86d92feccf41 to your computer and use it in GitHub Desktop.
Kotlin with/apply
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
val s = with(StringBuilder()) { | |
append("Hello!") | |
append("How are you?") | |
toString() // implicit return value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment