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 all

Basic Examples  (3)

Print the result of an intermediate computation:

In[1]:=
Click for copyable input
Out[1]=

Print an intermediate result using a label:

In[1]:=
Click for copyable input
Out[1]=

Report a property of an intermediate result:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Applications  (2)

Properties & Relations  (2)

See Also

EchoFunction  Print  TracePrint  Sow

Introduced in 2015
(10.3)