assign-delayed: Create an delayed binding.

%<d-%R Documentation

Create an delayed binding.

Description

Infix form of delayedAssign which creates an delayed or lazy binding, which only evaluates the expression the first time it is used.

Usage

x %<d-% value

Arguments

x

unquoted expression naming variable to create

value

unquoted expression to evaluate the first time name is accessed

Examples

x %<d-% (a + b)
a <- 10
b <- 100
x

pryr documentation built on Jan. 18, 2023, 1:08 a.m.