aboutsummaryrefslogtreecommitdiff
path: root/docs/sets.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 22:45:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 22:45:02 -0400
commit44cd26f2cebd760a53aa4ff1b7779e718a101650 (patch)
tree4bdc9144c6825a0c394155712d5e464ee2a61061 /docs/sets.md
parent3406515a44b13d0c290c28ac42bd364ce27560c7 (diff)
Rename Array -> List in all code and docs
Diffstat (limited to 'docs/sets.md')
-rw-r--r--docs/sets.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/sets.md b/docs/sets.md
index 88e47e98..1aaba59d 100644
--- a/docs/sets.md
+++ b/docs/sets.md
@@ -28,7 +28,7 @@ For type annotations, a set that holds items with type `T` is written as `|T|`.
### Comprehensions
-Similar to arrays, sets can use comprehensions:
+Similar to lists, sets can use comprehensions:
```tomo
set := |10*i for i in 10|
@@ -38,7 +38,7 @@ set3 := |-10, 10*i for i in 10|
## Accessing Items
-Sets internally store their items in an array, which you can access with the
+Sets internally store their items in a list, which you can access with the
`.items` field. This is a constant-time operation that produces an immutable
view:
@@ -115,7 +115,7 @@ func add_all(set:@|T|, items: [T] -> Void)
```
- `set`: The mutable reference to the set.
-- `items`: The array of items to add to the set.
+- `items`: The list of items to add to the set.
**Returns:**
Nothing.
@@ -257,7 +257,7 @@ func remove_all(set:@|T|, items: [T] -> Void)
```
- `set`: The mutable reference to the set.
-- `items`: The array of items to remove from the set.
+- `items`: The list of items to remove from the set.
**Returns:**
Nothing.