SetDelayed
assigns
value
toexpr
, without evaluatingvalue
.
Examples
SetDelayed
is like Set
, except it has attribute HoldAll
, thus it does not evaluate the right-hand side immediately, but evaluates it when needed.
Changing the value of a
affects x
:
Condition
(/;
) can be used with SetDelayed
to make an assignment that only holds if a condition is satisfied:
Related terms
Implementation status
- ✅ - full supported