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/union.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/type_system/union.md') diff --git a/docs/type_system/union.md b/docs/type_system/union.md index 7d0c798..81a3ecb 100644 --- a/docs/type_system/union.md +++ b/docs/type_system/union.md @@ -28,14 +28,18 @@ Result[ANY] `alias Union[.transient; ANY.value; Error.error] Option[ANY] `alias Union[.transient; ANY.some; Void.none] -Next[Any] `alias Union[.transient; ANY.value; Void.done; Error.error] +Next[Any] `alias Union[.transient; ANY.iter; Void.done] + +Next_result[Any] `alias Union[.transient; ANY.value; Error.error; Void.done] + +Next_option[Any] `alias Union[.transient; ANY.some; Void.none; Void.done] ``` ## Default Operation When a transient union is assigned the first type specified is moved out. -If the type is not the first specified a result with an error is returned to the parent function +If no match is used and if the type is not the first specified a result with an error is returned ```text z : x / y // Result[Int[...]] -- cgit v1.2.3