(36 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH List.has 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 List.has \- check for member8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI List.has\ :\ func(list:\ [T],\ target:\ T\ ->\ Bool)13 .fi14 .SH DESCRIPTION15 Checks if the list has an element.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 list [T] The list to check.26 target T The element to check for.27 .TE28 .SH RETURN29 `yes` if the list has the element, `no` otherwise.31 .SH EXAMPLES32 .EX33 assert [10, 20, 30].has(20) == yes34 .EE35 .SH SEE ALSO36 .BR Tomo-List (3)