Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlintype-safe builders DSLsSingle-choice MCQ

In a type-safe builder, why is the receiver lambda parameter conventionally the last parameter, and what does this idiom enable at the call site?

fun html(init: HtmlTag.() -> Unit): HtmlTag { val tag = HtmlTag() tag.init() return tag }