Name

lazy

Usage

special-form

Syntax

(lazy sym expr)

Description

The form (lazy a expr) compiles to (let a (system:create-delayed-expression (lambda () expr))). The expression is not evaluated until the variable is read. Reading references to a are compiled as (system:get-delayed-expression-result a).