EchoFunction

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)

Print a property of an intermediate result:

Report a property using a label:

Scope  (2)

Print a property of an intermediate result:

Report a property using a label:

Properties & Relations  (5)

EchoFunction is an operator form of Echo:

EchoFunction gives priority to the function:

Echo and EchoLabel give priority to the label:

These cases are equivalent:

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

1.000552`

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

EchoFunction is disabled inside QuietEcho:

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.

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_2024_echofunction, author="Wolfram Research", title="{EchoFunction}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EchoFunction.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_echofunction, organization={Wolfram Research}, title={EchoFunction}, year={2015}, url={https://reference.wolfram.com/language/ref/EchoFunction.html}, note=[Accessed: 22-December-2024 ]}