WOLFRAM

EchoFunction[f][expr]

prints f[expr] and returns expr.

EchoFunction[label,f][expr]

prints f[expr] prepending label and returns expr.

Details

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Print a property of an intermediate result:

Out[1]=1

Report a property using a label:

Out[1]=1

Scope  (2)Survey of the scope of standard use cases

Print a property of an intermediate result:

Out[1]=1

Report a property using a label:

Out[1]=1

Properties & Relations  (5)Properties of the function, and connections to other functions

EchoFunction is an operator form of Echo:

Out[1]=1
Out[2]=2

EchoFunction gives priority to the function:

Out[1]=1

Echo and EchoLabel give priority to the label:

Out[2]=2
Out[3]=3

These cases are equivalent:

Out[1]=1
Out[2]=2
Out[3]=3

EchoTiming can be used to print the timing of intermediate computations without affecting the result:

1.000552`
Out[1]=1

EchoFunction can also be used to print the timing, but at the cost of doing the computation twice:

Out[2]=2

EchoFunction is disabled inside QuietEcho:

Out[1]=1
Wolfram Research (2015), EchoFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/EchoFunction.html.
Wolfram Research (2015), EchoFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/EchoFunction.html.

Text

Wolfram Research (2015), EchoFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/EchoFunction.html.

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.

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

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

BibTeX

@misc{reference.wolfram_2025_echofunction, author="Wolfram Research", title="{EchoFunction}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EchoFunction.html}", note=[Accessed: 02-June-2025 ]}

@misc{reference.wolfram_2025_echofunction, author="Wolfram Research", title="{EchoFunction}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EchoFunction.html}", note=[Accessed: 02-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_echofunction, organization={Wolfram Research}, title={EchoFunction}, year={2015}, url={https://reference.wolfram.com/language/ref/EchoFunction.html}, note=[Accessed: 02-June-2025 ]}

@online{reference.wolfram_2025_echofunction, organization={Wolfram Research}, title={EchoFunction}, year={2015}, url={https://reference.wolfram.com/language/ref/EchoFunction.html}, note=[Accessed: 02-June-2025 ]}