12345678910111213141516171819202122232425262728293031323334353637 | '\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Table.with 3 2026-03-08 "Tomo man-pages"
.SH NAME
Table.with \- return a table with values added from another table
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Table.with\ :\ func(t:\ {K:V},\ other:\ {K:V}\ ->\ {K:V})
.fi
.SH DESCRIPTION
Return a copy of a table with values added from another table
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
t {K:V} The base table.
other {K:V} The other table from which new key/value pairs will be added.
.TE
.SH RETURN
The original table, but with values from the other table added.
.SH EXAMPLES
.EX
t := {"A": 1, "B": 2}
assert t.with({"B": 20, "C": 30}) == {"A": 1, "B": 20, "C": 30}
.EE
.SH SEE ALSO
.BR Tomo-Table (3)
|