Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 615 Bytes

to-string.md

File metadata and controls

23 lines (16 loc) · 615 Bytes

to-string

to-string converts the given value to a string. The function always uses humane coalescing.

Examples

  • (to-string null)""
  • (to-string true)"true"
  • (to-string false)"false"
  • (to-string 0)"0"
  • (to-string 1.1)"1.1"
  • (to-string []) ➜ error

Forms

(to-string value:any)string

  • value is an arbitrary expression.

to-string evaluates the given expression and then coalesces the result into a string value. See the documentation for the humane coalescer for the exact conversion rules.