diff options
Diffstat (limited to 'man/man3/tomo-Table.has.3')
| -rw-r--r-- | man/man3/tomo-Table.has.3 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/man/man3/tomo-Table.has.3 b/man/man3/tomo-Table.has.3 index 40111400..b2efffd6 100644 --- a/man/man3/tomo-Table.has.3 +++ b/man/man3/tomo-Table.has.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.has 3 2025-05-17 "Tomo man-pages" +.TH Table.has 3 2025-09-21 "Tomo man-pages" .SH NAME Table.has \- check for a key .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Table.has\ :\ func(t:\ {K=V},\ key:\ K\ ->\ Bool) +.BI Table.has\ :\ func(t:\ {K:V},\ key:\ K\ ->\ Bool) .fi .SH DESCRIPTION Checks if the table contains a specified key. @@ -22,7 +22,7 @@ allbox; lb lb lbx lb l l l l. Name Type Description Default -t {K=V} The table. - +t {K:V} The table. - key K The key to check for presence. - .TE .SH RETURN @@ -30,8 +30,6 @@ key K The key to check for presence. - .SH EXAMPLES .EX ->> {"A"=1, "B"=2}.has("A") -= yes ->> {"A"=1, "B"=2}.has("xxx") -= no +assert {"A": 1, "B": 2}.has("A") == yes +assert {"A": 1, "B": 2}.has("xxx") == no .EE |
