diff options
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 |
