summaryrefslogtreecommitdiff
path: root/docs/language/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/language/index.md')
-rw-r--r--docs/language/index.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/language/index.md b/docs/language/index.md
index a5dce76..5d1b31f 100644
--- a/docs/language/index.md
+++ b/docs/language/index.md
@@ -112,12 +112,22 @@ A list of statements between `()` separated by `;` or `\n`
# Definitions
-A list of type definitions between `[]` separated by `;` or `\n`
+A list of definitions between `[]` separated by `;` or `\n`
```text
Type[arg]
```
+## Destructuring
+
+```text
+v : Tuple(1; 2; 3)
+v [a; b; c]
+`log a // I64.a $ 1
+`log b // I64.b $ 2
+`log c // I64.c $ 3
+```
+
# Actions
A list of statements between `{}` separated by `;` or `\n` associated with a conditional