Join Slack
Communities
Powered by
As I remember `.()` lambda with receiver
# getting-started
e
edwardwongtl
01/12/2018, 3:20 AM
As I remember
.()
lambda with receiver
h
Hohenhiem
01/12/2018, 3:33 AM
hhmm, still a little blurry for me. 🤔
e
edwardwongtl
01/12/2018, 3:39 AM
Basically it means the lambda function is treated as a member function of the
AClass
c
cedric
01/12/2018, 3:42 AM
@Hohenhiem
This is how you create a type safe builder (DSL) with Kotlin:
https://kotlinlang.org/docs/reference/type-safe-builders.html
🙇 1
h
Hohenhiem
01/12/2018, 4:07 AM
cool thank you
@cedric
3
Views
Open in Slack
Previous
Next