summaryrefslogtreecommitdiff
path: root/docs/type_system/enum.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-06-09 14:01:57 -0400
committernodist <kevin.comas.git@gmail.com>2026-06-09 14:01:57 -0400
commit9d6a15b55bc948227401cb0be721e764e8053b50 (patch)
tree01dc5d7f3465436236247987e1882f5ce18d3bba /docs/type_system/enum.md
parenta13b72d789c6e2ee3d94bd1b19aad3dda0aea3c3 (diff)
add name to application
Diffstat (limited to 'docs/type_system/enum.md')
-rw-r--r--docs/type_system/enum.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/type_system/enum.md b/docs/type_system/enum.md
index 4762389..6b06849 100644
--- a/docs/type_system/enum.md
+++ b/docs/type_system/enum.md
@@ -5,9 +5,12 @@
A symbol associated with a type
```text
-Enum[Collection[.symbol]] // Resoves to Enum[Void; ...]
+Enum[TYPE; Collection[.symbol : Const[Value]]]
+```
-Enum[TYPE; Collection[.symbol]]
+## Definition Example
-Enum[TYPE; Collection[.symbol : VALUE]]
+```text
+E : Enum[I64; .a; .b; .c]
+`log E Enum[I64; .a : 0; .b : 1; .c : 2]
```