diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-09 10:07:44 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-09 10:07:44 -0400 |
| commit | 4da9de3213a28c7e17945168acdb06308bb41df8 (patch) | |
| tree | 6bc6a3ff8653eb7bfe6591c36a7ab9b491649b9d /docs/type_system/group.md | |
| parent | faac96fff84c45acf20af0515e8fd43af32fdaca (diff) | |
use group for tuple and table
Diffstat (limited to 'docs/type_system/group.md')
| -rw-r--r-- | docs/type_system/group.md | 36 |
1 files changed, 36 insertions, 0 deletions
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 |
