Skip to content

Scope.sections

Dokka 2.2.0 generates this reference of the Kotlin spec builder during each site build from the Kotlin sources, and its summary lists every class and function. The guide shows the builder in use, the Java builder's reference covers the handles, types and expressions it shares, and the extensions read the data.

fun <T> sections(vararg clauses: SectionClause, body: Sections<B, C>.() -> T): T

sections ... { ... }, with until and skipOther clauses in the order given. The body gives the arms.


fun <T> sections(vararg until: Until, skipOther: Boolean, body: Sections<B, C>.() -> T): T

sections until ... skip other { ... }, with the clauses as arguments.