summaryrefslogtreecommitdiff
path: root/docs/type_system/fn.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-05-20 15:16:19 -0400
committernodist <kevin.comas.git@gmail.com>2026-05-20 15:16:19 -0400
commit83729ca507a3266f3793c3ff2db7229a86e80aa6 (patch)
tree03c9d6d7c9443bbe67c1f3ab53618d719cff3228 /docs/type_system/fn.md
parentdcf57ffd19ee65c46e9ee635ca6f8238b8f1f07f (diff)
mutiple next unions
Diffstat (limited to 'docs/type_system/fn.md')
-rw-r--r--docs/type_system/fn.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/type_system/fn.md b/docs/type_system/fn.md
index dce371d..458719a 100644
--- a/docs/type_system/fn.md
+++ b/docs/type_system/fn.md
@@ -21,7 +21,7 @@ Yielding wraps the value in the transient union `Next`
Return `Void` to stop iteration
```text
-fn : Fn[x] $ ( @ 1 .. x { `yield 2 * x } )
+fn : Fn[n] $ ( @ 1 .. n { `yield 2 * x }[x] )
it : fn `sync 10
// invoking
@ it { `log v }[v] // 2 4 6 8 10 12 14 16 18 20
@@ -30,7 +30,6 @@ it : fn `sync 10
# `sync it {
.value { `log v }[v]
.done { `break }
- .error { `return e }[e]
}
}
```