aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Set.has.3
blob: 02f8a7ae2ec006eaa1fead2581aed6de0ae41869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Set.has 3 2025-04-30 "Tomo man-pages"
.SH NAME
Set.has \- check if a set has an item
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Set.has\ :\ func(set:\ |T|,\ item:\ T\ ->\ Bool)
.fi
.SH DESCRIPTION
Checks if the set contains a specified item.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
set	|T|	The set to check. 	-
item	T	The item to check for presence. 	-
.TE
.SH RETURN
`yes` if the item is present, `no` otherwise.

.SH EXAMPLES
.EX
>> |10, 20|.has(20)
= yes
.EE