Skip to content

Scope.let

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 let(name: String, value: IntExpr): IntField<I>

let name = value, a computed integer at this block's depth.


fun let(name: String, value: FloatExpr): FloatField<F>

let name = value, a computed float at this block's depth.


fun let(name: String, value: NumExpr): NumField<N>

let name = value, a computed integer or float at this block's depth.


fun let(name: String, value: StringExpr): StringField<S>

let name = value, a computed string at this block's depth.


fun let(name: String, value: DynExpr): DynField

let name = value, whose type and depth the data decide.


fun let(target: Field<*>, value: Expr): DynField

let x = value through a handle, as Iris.let.

Return

the handle of the name as this definition leaves it


fun let(target: Discard, value: Expr)

let _ = value, which evaluates value without storing it.