diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-01-12 16:49:58 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-01-12 16:49:58 -0500 |
| commit | 645d66e0de0f201404d9ad4b210f90c139a247ff (patch) | |
| tree | 08367c3631b928752cde94083bdfe2ae49db0b79 /docs/arrays.md | |
| parent | b025cf269d2e07e179be4a0e34d936862dc640c2 (diff) | |
Change table syntax to `{key=value}` and `{:K,V}`/`{K,V}`
Diffstat (limited to 'docs/arrays.md')
| -rw-r--r-- | docs/arrays.md | 4 |
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} ``` --- |
