The following pattern is rather common when defini...
# announcements
m
The following pattern is rather common when defining DSLs:
Copy code
fun thing(body: Thing.() -> Unit): Thing = SomeThing().apply { body() }