diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-05-20 15:16:19 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-05-20 15:16:19 -0400 |
| commit | 83729ca507a3266f3793c3ff2db7229a86e80aa6 (patch) | |
| tree | 03c9d6d7c9443bbe67c1f3ab53618d719cff3228 /docs/type_system/fn.md | |
| parent | dcf57ffd19ee65c46e9ee635ca6f8238b8f1f07f (diff) | |
mutiple next unions
Diffstat (limited to 'docs/type_system/fn.md')
| -rw-r--r-- | docs/type_system/fn.md | 3 |
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] } } ``` |
