Skip to content

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.

The arms of sections, the receiver of its lambda.

Functions

fun arm(vararg parts: Any, optional: Boolean = false, last: Boolean = false)

An arm with no body; its parts are those that Scope.line takes.

fun <T> arm(vararg parts: Any, last: Boolean = false, body: B.() -> T): T

An arm whose body always runs when the arm is required.

fun <T> optionalArm(vararg parts: Any, last: Boolean = false, body: C.() -> T): T

An optional arm, whose definitions may be absent.