arekolek
08/11/2017, 7:56 AMArray.forEach
that passes each element as this
instead of it
?stefano.maffullo
08/11/2017, 8:00 AMarekolek
08/11/2017, 8:01 AMit
from outer scope without using labels or explicit parameter namesit
from forEach
foo.run { bar.forEach { it.baz = this } }
foo.let { bar.forEach { baz = it } }
menegatti
08/11/2017, 8:18 AMarekolek
08/11/2017, 8:22 AMlet { run { baz = it } }
feels more natural in my case.menegatti
08/11/2017, 8:26 AMit
being shadowed, I usually go with the named parameter as it helps reading later... but I can always back the "let's see if it's possible" spirit 😄