4 ms·
Doesn't support multiple arguments by itself, because "it" will always refer to the "group". But with destructing you can name yourself as many arguments as you
by TrianguloY 3y ago
Doesn't support multiple arguments by itself, because "it" will always refer to the "group". But with destructing you can name yourself as many arguments as you want:
listOf(1,2,3).let { (a, b, c) -> a * b + c }
Which I think it's a good compromise