Hullaballoonatic
01/20/2019, 9:04 PM<->
or something? would be cool if kotlin had one. NVM just gonna use also
karelpeeters
01/21/2019, 10:30 AMkarelpeeters
01/21/2019, 10:30 AMx, y = y, x
Hullaballoonatic
01/30/2019, 6:51 PMHullaballoonatic
01/30/2019, 6:52 PMx = y.also { y = x }
Hullaballoonatic
01/30/2019, 6:53 PMx <-> y
is just as readable, and quicker, but i can understand why you wouldn't want to use type parameter brackets like thatkarelpeeters
01/30/2019, 7:51 PMalso
is the standard solution for this I think.Hullaballoonatic
01/30/2019, 7:51 PMHullaballoonatic
01/30/2019, 7:51 PMkarelpeeters
01/30/2019, 7:52 PM