let

fun let(value: Dynamic, body: Lambda): Any

Defines a temporary variable that lives only inside the lambda body.

.let {world}
item:
Hello, .item

In implicit form:

.let {world}
Hello, .1

Return

the evaluation of body with value as a parameter

Parameters

value

value to use as a temporary variable

body

content to evaluate with the temporary variable. Accepts 1 parameter (value itself)

Wiki page

Let