diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-29 13:27:11 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-29 13:27:11 -0500 |
| commit | 353a1a40173d4722809e2cad215ab734bf68b283 (patch) | |
| tree | 77055997b202fd028709af53ac13d8abd0a8c2ae /man/man3/tomo-List.where.3 | |
| parent | a0ea1840d837650b10ae4f9a3bb05ded08322510 (diff) | |
Improved manpages.
Diffstat (limited to 'man/man3/tomo-List.where.3')
| -rw-r--r-- | man/man3/tomo-List.where.3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/man/man3/tomo-List.where.3 b/man/man3/tomo-List.where.3 index 8d5c71ef..a436d2ea 100644 --- a/man/man3/tomo-List.where.3 +++ b/man/man3/tomo-List.where.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.where 3 2025-09-21 "Tomo man-pages" +.TH List.where 3 2025-11-29 "Tomo man-pages" .SH NAME List.where \- find an index where a predicate matches .SH LIBRARY @@ -23,7 +23,7 @@ lb lb lbx lb l l l l. Name Type Description Default list [T] The list to search through. - -predicate func(item:&T -> Bool) A function that returns `yes` if the item's index should be returned or `no` if it should not. - +predicate func(item:&T -> Bool) A function that returns \fByes\fR if the item's index should be returned or \fBno\fR if it should not. - .TE .SH RETURN Returns the index of the first item where the predicate is true or `none` if no item matches. @@ -33,3 +33,5 @@ Returns the index of the first item where the predicate is true or `none` if no assert [4, 5, 6].where(func(i:&Int): i.is_prime()) == 5 assert [4, 6, 8].find(func(i:&Int): i.is_prime()) == none .EE +.SH SEE ALSO +.BR Tomo-List (3) |
