diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-11 13:24:54 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-11 13:24:54 -0500 |
| commit | 6c5c75961957db64e0074864ce0d3b7357f5a03a (patch) | |
| tree | fcb1efc5c77557a0f6bcff1d2e209b841791767d | |
| parent | 1c261c33bd3c0a03a3cecf81c2082d8d1904c772 (diff) | |
Update docs
| -rw-r--r-- | docs/arrays.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/arrays.md b/docs/arrays.md index efb108ba..ce1c47df 100644 --- a/docs/arrays.md +++ b/docs/arrays.md @@ -350,12 +350,13 @@ Finds the index of the first occurrence of an element (if any). **Signature:** ```tomo -func find(arr: [T] -> Int?) +func find(arr: [T], target: T -> Int?) ``` **Parameters:** - `arr`: The array to search through. +- `item`: The item to find in the array. **Returns:** The index of the first occurrence or `!Int` if not found. |
