The Monster
09/06/2021, 4:00 PMJoffrey
09/06/2021, 4:01 PMval (first, second, third) = myList
Behind the scenes, this will call myList.component1()
(and 2 and 3) and assign the result to each of these variables.
You will also find such functions automatically generated for data classes.
You can also declare such functions yourself in your own classes if you want.The Monster
09/06/2021, 4:09 PMJoffrey
09/06/2021, 4:10 PMThe Monster
09/06/2021, 4:12 PM