export

fun <T : Any> export(scope: Exporter<T>.() -> Unit): T

Scoping function to capture some value by an Exporter and return the value.

Return

some arbitrary type T

See also

Parameters

scope

some value generating expression with Exporter as receiver