Skip to content

Echo ​

Prints a value in passing, and returns it unchanged.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageEcho✓
Echo(expr)Prints exprexpr's value, and returns it unchanged.
Echo(expr, label)Like Echo(expr)Echo(expr), prefixed by labellabel.
Echo(expr, label, f)Like Echo(expr,label)Echo(expr, label), but prints f(expr)f(expr) instead of exprexpr itself — the RETURNED value is still exprexpr, unchanged.
Typed signatures
TypePackageApplies
(any, any?, ((any) -> any)?) console -> anycombinatoricsalways

Domain: Collections

Details
  • This engine has no console: printing is routed through @enumeratio/engine's message channel instead (Echo::printed for the plain form, Echo::labeled with a label), collectible with collectMessages — not skipped outright, so a caller that wants the printed text still can get it.

Examples

Basic #

Echo returns its argument unchanged

live ↗
InEcho(42)\mathrm{Echo}(42)Out4242
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: AbsoluteTiming