to yaml for formats

Convert table into .yaml/.yml text.

Signature

> to yaml {flags}

Input/output types:

inputoutput
anystring

Examples

Outputs an YAML string representing the contents of this table

> [[foo bar]; ["1" "2"]] | to yaml
- foo: '1'
  bar: '2'