mhamade
10/25/2019, 7:03 AMgildor
10/25/2019, 7:13 AMthis
is always current scope
it
is just a default name of parameter in lambda with only one param. So you can omit name for such case and use it
instead, but if you set name for lambda parameter explicitly, you don’t have access to it
anymore.
See documentation about lambdas and it
https://kotlinlang.org/docs/reference/lambdas.html#it-implicit-name-of-a-single-parameterwhy do different scoping functions use one but not the otherSo answering on your question. Some scope functions use receiver as scope, some just pass it as lambda parameter
mhamade
10/25/2019, 7:32 AM