sema-docs 1.23.0

Canonical structured documentation for Sema builtins/special forms; powers LSP hover/completion and REPL apropos
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
---
name: "toml/encode"
module: "toml"
params: [{ name: m, type: map }]
returns: "string"
---

Serialize a map to a TOML document string. The top-level value must be a map; keys are emitted as TOML keys and values are converted to their TOML equivalents.

```sema
(toml/encode {:name "sema" :version 2})
; => "name = \"sema\"\nversion = 2\n"
```