Created
November 1, 2017 20:39
-
-
Save jkinkead/2df2a5b9bc5d111ec99065d5c6fe64df to your computer and use it in GitHub Desktop.
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
data class User(val name: String, val age: Int) | |
val myUser = User("Chip", 15) | |
// Destructuring myUser into two fields. | |
val (userName, userAge) = myUser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment