aboutsummaryrefslogtreecommitdiff
path: root/docs/arrays.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-01-12 16:49:58 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-01-12 16:49:58 -0500
commit645d66e0de0f201404d9ad4b210f90c139a247ff (patch)
tree08367c3631b928752cde94083bdfe2ae49db0b79 /docs/arrays.md
parentb025cf269d2e07e179be4a0e34d936862dc640c2 (diff)
Change table syntax to `{key=value}` and `{:K,V}`/`{K,V}`
Diffstat (limited to 'docs/arrays.md')
-rw-r--r--docs/arrays.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/arrays.md b/docs/arrays.md
index 7cae399a..29965fb4 100644
--- a/docs/arrays.md
+++ b/docs/arrays.md
@@ -325,7 +325,7 @@ Counts the occurrences of each element in the array.
**Signature:**
```tomo
-func counts(arr: [T] -> {T: Int})
+func counts(arr: [T] -> {T,Int})
```
**Parameters:**
@@ -338,7 +338,7 @@ A table mapping each element to its count.
**Example:**
```tomo
>> [10, 20, 30, 30, 30]:counts()
-= {10: 1, 20: 1, 30: 3}
+= {10=1, 20=1, 30=3}
```
---