Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Forked from anonymous/destructering.kt
Created November 9, 2017 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasperpeulen/8b15428d3c8bbee328b96b2717212dcc to your computer and use it in GitHub Desktop.
Save kasperpeulen/8b15428d3c8bbee328b96b2717212dcc to your computer and use it in GitHub Desktop.
Desctructering in Kotlin
data class Person(val name: String, val age: Int)
val(name, age) = Person("Guy", 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment