EchoFunction[f][expr]
prints f[expr] and returns expr.
EchoFunction[label,f][expr]
prints f[expr] prepending label and returns expr.
EchoFunction
EchoFunction[f][expr]
prints f[expr] and returns expr.
EchoFunction[label,f][expr]
prints f[expr] prepending label and returns expr.
Details
- EchoFunction is an operator form of Echo.
- EchoFunction[][expr] prints expr and returns expr. It is equivalent to Echo[expr].
Examples
open all close allBasic Examples (2)
Scope (2)
Properties & Relations (5)
EchoFunction is an operator form of Echo:
Echo[expr, "label:", f]EchoFunction["label:", f][expr]EchoFunction gives priority to the function:
EchoFunction[f][expr]Echo and EchoLabel give priority to the label:
Echo[expr, "label:"]EchoLabel["label:"][expr]Echo[expr]EchoFunction[][expr]EchoLabel[][expr]EchoTiming can be used to print the timing of intermediate computations without affecting the result:
x = 1;EchoTiming[Pause[x++]];xEchoFunction can also be used to print the timing, but at the cost of doing the computation twice:
x = 1;EchoFunction[AbsoluteTiming][Unevaluated[Pause[x++]]];xEchoFunction is disabled inside QuietEcho:
QuietEcho[EchoFunction[f][expr]]See Also
EchoLabel Echo QuietEcho EchoTiming EchoEvaluation Print TracePrint Sow
Function Repository: EchoPerformance
Related Guides
Related Workflows
- Print Intermediate Values of a Variable
History
Text
Wolfram Research (2015), EchoFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/EchoFunction.html.
CMS
Wolfram Language. 2015. "EchoFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EchoFunction.html.
APA
Wolfram Language. (2015). EchoFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EchoFunction.html
BibTeX
@misc{reference.wolfram_2026_echofunction, author="Wolfram Research", title="{EchoFunction}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EchoFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_echofunction, organization={Wolfram Research}, title={EchoFunction}, year={2015}, url={https://reference.wolfram.com/language/ref/EchoFunction.html}, note=[Accessed: 13-June-2026]}