(37 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Table.has 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Table.has \- check for a key8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Table.has\ :\ func(t:\ {K:V},\ key:\ K\ ->\ Bool)13 .fi14 .SH DESCRIPTION15 Checks if the table contains a specified key.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 t {K:V} The table.26 key K The key to check for presence.27 .TE28 .SH RETURN29 `yes` if the key is present, `no` otherwise.31 .SH EXAMPLES32 .EX33 assert {"A": 1, "B": 2}.has("A") == yes34 assert {"A": 1, "B": 2}.has("xxx") == no35 .EE36 .SH SEE ALSO37 .BR Tomo-Table (3)