aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Set.add.3
blob: 638f7a3196ca2584010270604bc1c6e2f5a2c664 (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-19T14:48:15.716048 "Tomo man-pages"
.SH NAME
Set.add \- Adds an item to the 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.


.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