Skip to content

Scope.repeat

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> repeat(count: Expr, record: RecordName = Iris.recordName(), body: R.() -> T): T

repeat count { ... }. The body's receiver is one level deeper, and its record is record, which names the records for projection and comprehensions.

Return

what body returns


fun <T> repeat(count: Long, record: RecordName = Iris.recordName(), body: R.() -> T): T

repeat count { ... }, as the other repeat.