matt tighe
03/15/2019, 9:19 PMAlowaniak
03/15/2019, 9:30 PMalso
Eg while(origin.read(data).also{ count = it } != -1)
tDnamein
03/16/2019, 2:29 PMNikky
03/16/2019, 3:43 PMread().also { count = it } != -1
in case its more readable than restructuring the code