Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Programming / Rule Application /

ReplaceRepeated

FilledSmallSquare expr //. rules repeatedly performs replacements until expr no longer changes.

FilledSmallSquare expr //. rules effectively applies /. repeatedly, until the results it gets no longer change.

FilledSmallSquare It performs one complete pass over the expression using /., then carries out the next pass.

FilledSmallSquare You should be very careful to avoid infinite loops when you use the //. operator. The command x //. x -> x + 1 will, for example, lead to an infinite loop.

FilledSmallSquare ReplaceRepeated takes the option MaxIterations, which specifies the maximum number of times it will try to apply the rules you give. The default setting is MaxIterations -> 65536. With MaxIterations -> Infinity there is no limit.

FilledSmallSquare See Section 2.5.1.

FilledSmallSquare See also: ReplaceAll, Rule, Set, FixedPoint.

FilledSmallSquare New in Version 1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: