From d9c68aa51521171b951d37c879ffee5ea64e21df Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 17 May 2026 14:43:15 -0400 Subject: use return and yield as keyword with union types passed --- docs/type_system/union.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/type_system/union.md') diff --git a/docs/type_system/union.md b/docs/type_system/union.md index 0f8b65b..1df65a8 100644 --- a/docs/type_system/union.md +++ b/docs/type_system/union.md @@ -27,6 +27,8 @@ Can only be retuned from functions and operations. The inner value must be moved 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] ``` ## Default Operation @@ -39,3 +41,14 @@ If the type is not the first specified a result with an error is returned to the z : x / y // Result[Int[...]] z // is value if y is not zero ``` +## Operators + +### \`value + +### \`error + +### \`some + +### \`none + + -- cgit v1.2.3