WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

lhs:>rhs or lhsrhs

represents a rule that transforms lhs to rhs, evaluating rhs only after the rule is used.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Applications  
Properties & Relations  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page

lhs:>rhs or lhsrhs

represents a rule that transforms lhs to rhs, evaluating rhs only after the rule is used.

Details

Examples

open all close all

Basic Examples  (1)

:> holds its right-hand side unevaluated:

The right-hand side is evaluated separately each time it is used:

Applications  (3)

Increment n each time x is replaced:

Evaluate the StepMonitor expression separately each time it is to be used:

Generate a diagonal matrix with random elements:

Properties & Relations  (6)

-> evaluates when it is first entered; :> when it is used:

Module and With do not affect local variables of RuleDelayed :

Module effectively uses a renamed instance of y:

By evaluating the arguments to RuleDelayed , local scoping is avoided:

KeyValuePattern can be used to transform a list of rules:

KeyValuePattern distinguishes between Rule and RuleDelayed :

See Also

Rule   Replace   SetDelayed   Keys   Values   Association   KeyValuePattern

Characters: \[RuleDelayed]

History

Introduced in 1988 (1.0) | Updated in 1996 (3.0)

Wolfram Research (1988), RuleDelayed, Wolfram Language function, https://reference.wolfram.com/language/ref/RuleDelayed.html (updated 1996).

Text

Wolfram Research (1988), RuleDelayed, Wolfram Language function, https://reference.wolfram.com/language/ref/RuleDelayed.html (updated 1996).

CMS

Wolfram Language. 1988. "RuleDelayed." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/RuleDelayed.html.

APA

Wolfram Language. (1988). RuleDelayed. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RuleDelayed.html

BibTeX

@misc{reference.wolfram_2025_ruledelayed, author="Wolfram Research", title="{RuleDelayed}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/RuleDelayed.html}", note=[Accessed: 17-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_ruledelayed, organization={Wolfram Research}, title={RuleDelayed}, year={1996}, url={https://reference.wolfram.com/language/ref/RuleDelayed.html}, note=[Accessed: 17-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /