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 allclose allProperties & Relations (5)
EchoFunction is an operator form of Echo:
EchoFunction gives priority to the function:
Echo and EchoLabel give priority to the label:
EchoTiming can be used to print the timing of intermediate computations without affecting the result:
EchoFunction can also be used to print the timing, but at the cost of doing the computation twice:
EchoFunction is disabled inside QuietEcho:
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