Roberto Messina
09/19/2019, 8:36 AMspand
09/19/2019, 8:37 AMLuca Nicoletti
09/19/2019, 8:41 AMfinal
Matteo Mirk
09/19/2019, 8:46 AMRoberto Messina
09/19/2019, 8:49 AMMatteo Mirk
09/19/2019, 11:08 AMv
parameter and return the one created inside the function. You can even shorten the declaration to:
fun loadArray(n: Int) = IntArray(n) {/*...*/}
function expressions and type inference can help shortening the code