Join Slack
Powered by
The following pattern is rather common when defini...
# announcements
m
mikehearn
11/18/2015, 12:57 PM
The following pattern is rather common when defining DSLs:
Copy code
fun thing(body: Thing.() -> Unit): Thing = SomeThing().apply { body() }
2
Views
Open in Slack
Previous
Next