Join Slack
Powered by
<@U8UKMCNGZ> There's a couple of posts explaining ...
# getting-started
i
ilya.gorbunov
06/15/2018, 5:03 PM
@Nicole
There's a couple of posts explaining their difference, try searching "Kotlin let apply also". IMO this table summarizes it at glance
https://docs.google.com/spreadsheets/d/1P2gMRuu36pSDW4fdwE-fLN9fcA_ZboIU2Q5VtgixBNo
n
Nicole
06/15/2018, 5:07 PM
Sure. There’s lots of people who have talked about the differences, but not the unifying things between them.
k
karelpeeters
06/15/2018, 5:10 PM
If wonder if there would be any use cases for the buttom righr spot. I guess you can always just create a new scope and rename the variable yourself.
i
ilya.gorbunov
06/15/2018, 5:19 PM
All these functions exist primarily to take some expression and introduce it as a value in the limited lambda function scope, either as
this
or as `it`/specified name — that's what unify them.
n
Nicole
06/15/2018, 5:36 PM
That’s what I’d just heard and so it’s nice to know that’s the key point 🙂
4
Views
Open in Slack
Previous
Next