Kotlin DSL

Kotlin DSL lets you define a specific "language" using an extension 
function under the hood. Useful for Builders, UI Layouts, and other
situations that have a standard structure.

fun doSomething(config: DoSomethingConfig.() -> Unit) {
	...
}

doSomething {
	configVar1 = ...
    configVar2 = ...
    if(condition) configVar3 = ...
}
Joyous Jellyfish