Last active
March 30, 2020 17:00
-
-
Save akexorcist/c1d36ffa25286afc5a2a1ebc34916705 to your computer and use it in GitHub Desktop.
Code Snippet for https://blog.nextzy.me/ไขข้อสงสัยของ-also-apply-let-run-และ-with-ใน-kotlin-bcc5746d7be1
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 user1 = User("Akexorcist").also { | |
| it.age = 17 | |
| it.job = "Android Developer" | |
| it.company = "Nextzy Technologies" | |
| } | |
| val user2 = User("Android Studio").also { | |
| it.age = 5 | |
| it.job = "Integrated Development Environment" | |
| it.company = "Google & JetBrains | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment