sema-docs 1.26.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
---
name: "spy"
module: "system"
section: "Debugging"
params: [{ name: label, type: string }, { name: value, type: any }]
---

Print `[label] value` to standard error and return `value` unchanged. Handy for inspecting intermediate values inside a pipeline.

```sema
(spy "x" (+ 1 2))   ; prints "[x] 3" to stderr, returns 3
```