summaryrefslogtreecommitdiff
path: root/docs/language
diff options
context:
space:
mode:
Diffstat (limited to 'docs/language')
-rw-r--r--docs/language/index.md10
-rw-r--r--docs/language/ownership.md2
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/language/index.md b/docs/language/index.md
index 8925f96..8ef01fd 100644
--- a/docs/language/index.md
+++ b/docs/language/index.md
@@ -120,6 +120,16 @@ Type[arg]
## Destructuring
+Take values out of a collection
+
+```text
+target [VAR_NAME.TARGET_NAME]
+target [VAR_NAME] // Resolves to VAR_NAME.VAR_NAME
+target [VAR_NAME_AT_INDEX]
+```
+
+### Destructuring Example with Indexes
+
```text
v : Tuple $ (1; 2; 3)
v [a; b; c]
diff --git a/docs/language/ownership.md b/docs/language/ownership.md
index 71e15a7..9f29d8d 100644
--- a/docs/language/ownership.md
+++ b/docs/language/ownership.md
@@ -36,4 +36,6 @@ float_array : Array[F64] $ ()
# Locking
+Prevent access to a container it's contents are modified
+
## References