Print a string to the stdout and set it's data-type
Write parameters to stdout without a trailing new line character. Cast the output's data-type to the value of the first parameter.
tout data-type "string to write" -> <stdout>
» tout json { "Code": 404, "Message": "Page not found" } -> pretty
{
"Code": 404,
"Message": "Page not found"
}
tout
supports ANSI constants.
Unlike out
, tout
does not append a carriage return / line feed.
tout
- ANSI Constants: Infixed constants that return ANSI escape sequences
- Define Type (
cast
): Alters the data-type of the previous function without altering its output - Error String (
err
): Print a line to the stderr - Output String (
out
): Print a string to the stdout with a trailing new line character - Prettify JSON: Prettifies JSON to make it human readable
- Reformat Data type (
format
): Reformat one data-type into another data-type (brace quote)
: Write a string to the stdout without new line (deprecated)
This document was generated from builtins/core/io/echo_doc.yaml.