diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 23:06:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 23:06:14 -0400 |
| commit | bf067544e98f4085c26161953e301aaa00a904df (patch) | |
| tree | e0b4d0c54c6a6c76e55c233cc40a19e96b5375d0 /man/man3/tomo-Table.with.3 | |
| parent | 0d36812c6af951a41caac77d5f312949f3bc521f (diff) | |
Update docs
Diffstat (limited to 'man/man3/tomo-Table.with.3')
| -rw-r--r-- | man/man3/tomo-Table.with.3 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/man/man3/tomo-Table.with.3 b/man/man3/tomo-Table.with.3 new file mode 100644 index 00000000..988fb888 --- /dev/null +++ b/man/man3/tomo-Table.with.3 @@ -0,0 +1,35 @@ +'\" t +.\" Copyright (c) 2025 Bruce Hill +.\" All rights reserved. +.\" +.TH Table.with 3 2025-09-21 "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 lb +l l l l. +Name Type Description Default +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 |
