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:

Applications  (1)

Report timings of intermediate evaluations:

Properties & Relations  (1)

EchoFunction is the operator form of Echo:

Echo gives priority to the label, and EchoFunction gives priority to the function:

These cases are equivalent:

Introduced in 2015
 (10.3)