aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Set.add.3
blob: 2c12307906b3559cc453d36fb9ebafebdb3fb558 (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
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Set.add 3 2025-04-30 "Tomo man-pages"
.SH NAME
Set.add \- add item to a set
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Set.add\ :\ func(set:\ |T|,\ item:\ T\ ->\ Void)
.fi
.SH DESCRIPTION
Adds an item to the set.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
set	|T|	The mutable reference to the set. 	-
item	T	The item to add to the set. 	-
.TE
.SH RETURN
Nothing.

.SH EXAMPLES
.EX
>> nums.add(42)
.EE