https://kotlinlang.org logo
#announcements
Title
# announcements
k

kagomez

07/10/2020, 11:36 PM
Hi, does anyone remember what the name for val (prop1, prop2) object is called?
it only applies to pair object?
z

Zach Klippenstein (he/him) [MOD]

07/10/2020, 11:50 PM
Destructuring?
You can do it with any object that defined
operator componentN()
functions
🎖️ 1
k

kagomez

07/11/2020, 1:34 AM
Thanks yes that’s the name cool
s

Stephan Schroeder

07/15/2020, 2:30 PM
data classes
do this automatically, and you can destructure a
List
with up to five entries.
2 Views