aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-18 15:52:12 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-18 15:52:12 -0400
commit8542662b34eaee9801b077838049152881aa0b93 (patch)
tree0bd1e16694e13f5ee84a703bcc1b55417fef635b /docs
parent8c97575c8fb93671e4ac51fa8232a1a2cfb7ad22 (diff)
Fix docs syntax
Diffstat (limited to 'docs')
-rw-r--r--docs/lists.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/lists.md b/docs/lists.md
index 1cbc2b45..9f15457b 100644
--- a/docs/lists.md
+++ b/docs/lists.md
@@ -845,7 +845,7 @@ list.sort(func(a,b:&Int): a.abs() <> b.abs())
Creates a new list with elements sorted.
```tomo
-sorted(list: [T], by=T.compare -> [T])
+func sorted(list: [T], by=T.compare -> [T])
```
- `list`: The list to be sorted.
@@ -870,7 +870,7 @@ A new list with sorted elements.
Returns a slice of the list from the start of the original list up to a specified index (inclusive).
```tomo
-to(list: [T], last: Int -> [T])
+func to(list: [T], last: Int -> [T])
```
- `list`: The original list.
@@ -894,7 +894,7 @@ A new list containing elements from the start up to the specified index.
Returns a Set that contains the unique elements of the list.
```tomo
-unique(list: [T] -> {T})
+func unique(list: [T] -> |T|)
```
- `list`: The list to process.