Last active
March 30, 2020 17:02
-
-
Save akexorcist/66d237102f1311e9035c125dadf7801a 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
| UserProfileParam("219347017350").apply { | |
| page = 0 | |
| count = 30 | |
| }.also { | |
| print("Get profile (id:${it.id})") | |
| track("Get profile", ${it.toString()}) | |
| }.run { | |
| val response = getUserProfile(this) | |
| saveToDatabase(response) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment