Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 297 Bytes

to-yaml.md

File metadata and controls

15 lines (9 loc) · 297 Bytes

to-yaml

This function encodes a value as YAML.

Examples

  • (to-yaml {foo 23})"foo: 23\n"
  • (to-yaml null)"null\n"

Forms

(to-yaml value:any)string

This is the only form of this function. It encodes a value as YAML. If encoding fails, an error is thrown.