123456789101112131415161718192021222324252627282930313233343536 | '\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH List.has 3 2025-11-29 "Tomo man-pages"
.SH NAME
List.has \- check for member
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI List.has\ :\ func(list:\ [T],\ target:\ T\ ->\ Bool)
.fi
.SH DESCRIPTION
Checks if the list has an element.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
list [T] The list to check.
target T The element to check for.
.TE
.SH RETURN
`yes` if the list has the element, `no` otherwise.
.SH EXAMPLES
.EX
assert [10, 20, 30].has(20) == yes
.EE
.SH SEE ALSO
.BR Tomo-List (3)
|