(37 lines)
1 '\" t2 .\" Copyright (c) 2026 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Table.with 3 2026-03-08 "Tomo man-pages"6 .SH NAME7 Table.with \- return a table with values added from another table8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Table.with\ :\ func(t:\ {K:V},\ other:\ {K:V}\ ->\ {K:V})13 .fi14 .SH DESCRIPTION15 Return a copy of a table with values added from another table18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 t {K:V} The base table.26 other {K:V} The other table from which new key/value pairs will be added.27 .TE28 .SH RETURN29 The original table, but with values from the other table added.31 .SH EXAMPLES32 .EX33 t := {"A": 1, "B": 2}34 assert t.with({"B": 20, "C": 30}) == {"A": 1, "B": 20, "C": 30}35 .EE36 .SH SEE ALSO37 .BR Tomo-Table (3)