ApplyTo[x,f] or x//=f
computes f[x] and resets x to the result.


ApplyTo 
ApplyTo[x,f] or x//=f
computes f[x] and resets x to the result.
Examples
open all close allBasic Examples (1)
Scope (5)
Use ApplyTo with an operator form:
Use ApplyTo with Composition:
Use ApplyTo with RightComposition:
The first argument to ApplyTo need not be a symbol:
Applications (2)
See Also
Set Construct AddTo AppendTo Function Composition RightComposition
Related Guides
History
Text
Wolfram Research (2020), ApplyTo, Wolfram Language function, https://reference.wolfram.com/language/ref/ApplyTo.html.
CMS
Wolfram Language. 2020. "ApplyTo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ApplyTo.html.
APA
Wolfram Language. (2020). ApplyTo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ApplyTo.html
BibTeX
@misc{reference.wolfram_2025_applyto, author="Wolfram Research", title="{ApplyTo}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ApplyTo.html}", note=[Accessed: 10-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_applyto, organization={Wolfram Research}, title={ApplyTo}, year={2020}, url={https://reference.wolfram.com/language/ref/ApplyTo.html}, note=[Accessed: 10-August-2025]}