From 83729ca507a3266f3793c3ff2db7229a86e80aa6 Mon Sep 17 00:00:00 2001 From: nodist Date: Wed, 20 May 2026 15:16:19 -0400 Subject: mutiple next unions --- docs/type_system/fn.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/type_system/fn.md') 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] } } ``` -- cgit v1.2.3