Reformat one data-type into another data-type
format
takes a data from stdin and returns that data reformated in another
specified data-type
<stdin> -> format data-type -> <stdout>
» tout json { "One": 1, "Two": 2, "Three": 3 } -> format yaml
One: 1
Three: 3
Two: 2
- Define Type (
cast
): Alters the data-type of the previous function without altering its output - Output With Type Annotation (
tout
): Print a string to the stdout and set it's data-type Marshal()
(type): Converts structured memory into a structured file format (eg for stdio)Unmarshal()
(type): Converts a structured file format into structured memory
This document was generated from builtins/core/typemgmt/format_doc.yaml.