Skip to content

EchoFunction

EchoFunction()[expr]

operator form of the Echofunction. Print the expr to the default output stream and return expr.

EchoFunction(head)[expr]

prints head(expr) and returns expr.

EchoFunction(label, head)[expr]

prints label before printing head(expr) and returns expr.

Examples

>> {EchoFunction()[f(x,y)], Print(g(a,b))}
{f(x,y),Null}

prints

f(x,y)
g(a,b)

and returns

{f(x,y),Null}

Implementation status

  • ✅ - full supported

Github