From 4da9de3213a28c7e17945168acdb06308bb41df8 Mon Sep 17 00:00:00 2001 From: nodist Date: Tue, 9 Jun 2026 10:07:44 -0400 Subject: use group for tuple and table --- docs/type_system/group.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/type_system/group.md (limited to 'docs/type_system/group.md') diff --git a/docs/type_system/group.md b/docs/type_system/group.md new file mode 100644 index 0000000..45e7dcb --- /dev/null +++ b/docs/type_system/group.md @@ -0,0 +1,36 @@ +# Group + +--- + +A sequence of different types accessed by index or a symbol mapped to an index + +```text +Group_access `alias Enum[.index; .symbol] +Group[Tuple_access; Collection[TYPE.SYMBOL]] +``` + +# Alias + +```text +Tuple[Collection[TYPE.SYMBOL]] `alias Group[.index; Collection[TYPE.SYMBOL]] + +Table[Collection[TYPE.SYMBOL]] `alias Group[.symbol; Collection[TYPE.SYMBOL]] +``` + +# Operators + +## ``get` + +## ``set` + +```text +Result[Void] : target `set (KEY; VALUE) + +items : Tuple $ (1; 2; 3) +items `set (0; 4) +`log items // Tuple[I64; I64; I64] $ (4; 2; 3) +``` + +# Destructuring + +# Mutating -- cgit v1.2.3