Echo
Echo[expr]
prints expr and returns expr.
Echo[expr,label]
prints expr prepending label and returns expr.
Echo[expr,label,f]
prints f[expr] prepending label and returns expr.
Examples
open allclose allBasic Examples (3)
Scope (4)
Applications (1)
Observe the order in which Cases visits parts of an expression at level 1:
Properties & Relations (6)
Echo returns the expression in its first argument:
EchoFunction is an operator form of Echo:
EchoLabel is an operator form of Echo:
EchoTiming can be used to print the timing of intermediate computations without affecting the result:
Echo can also be used to print the timing, but at the cost of doing the computation twice:
Echo prints the evaluated expression:
Use Unevaluated to print the unevaluated expression:
EchoEvaluation prints the expression before and after evaluation:
Text
Wolfram Research (2015), Echo, Wolfram Language function, https://reference.wolfram.com/language/ref/Echo.html.
CMS
Wolfram Language. 2015. "Echo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Echo.html.
APA
Wolfram Language. (2015). Echo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Echo.html