EchoLabel

EchoLabel[label][expr]

prints expr prepending label and returns expr.

Details

Examples

open allclose all

Basic Examples  (1)

Print an intermediate result using a label:

Scope  (1)

Print an intermediate result using a label:

Applications  (1)

Use different labels for different levels of a nested loop:

Properties & Relations  (5)

EchoLabel is an operator form of Echo:

Echo and EchoLabel give priority to the label:

EchoFunction gives priority to the function:

These cases are equivalent:

EchoLabel prints an intermediate result with a label:

To print a property of an intermediate result, use EchoFunction:

EchoLabel is disabled inside QuietEcho:

Wolfram Research (2020), EchoLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/EchoLabel.html.

Text

Wolfram Research (2020), EchoLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/EchoLabel.html.

CMS

Wolfram Language. 2020. "EchoLabel." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EchoLabel.html.

APA

Wolfram Language. (2020). EchoLabel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EchoLabel.html

BibTeX

@misc{reference.wolfram_2024_echolabel, author="Wolfram Research", title="{EchoLabel}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/EchoLabel.html}", note=[Accessed: 18-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_echolabel, organization={Wolfram Research}, title={EchoLabel}, year={2020}, url={https://reference.wolfram.com/language/ref/EchoLabel.html}, note=[Accessed: 18-December-2024 ]}