Skip to content

Instantly share code, notes, and snippets.

Created November 9, 2017 15:26
Show Gist options
  • Save anonymous/a0f970110292dd925d55729a8a30cb18 to your computer and use it in GitHub Desktop.
Save anonymous/a0f970110292dd925d55729a8a30cb18 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Nov 9, 2017.
    2 changes: 2 additions & 0 deletions destructering.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    data class Person(val name: String, val age: Int)
    val(name, age) = Person("Guy", 20)