aboutsummaryrefslogtreecommitdiff
path: root/api/tables.yaml
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-16 17:21:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-16 17:21:31 -0400
commit6c088b024d5a768e511392db23231c7fba85d0be (patch)
tree64398c762c6abda52f88dafee887e1905fb52fe2 /api/tables.yaml
parentc72b0406a32ffc3f04324f7b6c321486762fca41 (diff)
Remove whitespace
Diffstat (limited to 'api/tables.yaml')
-rw-r--r--api/tables.yaml18
1 files changed, 9 insertions, 9 deletions
diff --git a/api/tables.yaml b/api/tables.yaml
index f3b648da..46f45db9 100644
--- a/api/tables.yaml
+++ b/api/tables.yaml
@@ -13,7 +13,7 @@ Table.clear:
The reference to the table.
example: |
>> t.clear()
-
+
Table.get:
short: get an item from a table
description: >
@@ -37,16 +37,16 @@ Table.get:
>> t := {"A"=1, "B"=2}
>> t.get("A")
= 1?
-
+
>> t.get("????")
= none
-
+
>> t.get("A")!
= 1
-
+
>> t.get("????") or 0
= 0
-
+
Table.get_or_set:
short: get an item or set a default if absent
description: >
@@ -86,7 +86,7 @@ Table.get_or_set:
= @[0, 0, 0]
>> t
= &{"A"=@[1, 2, 3, 4], "B"=@[99], "C"=@[0, 0, 0]}
-
+
Table.has:
short: check for a key
description: >
@@ -109,7 +109,7 @@ Table.has:
= yes
>> {"A"=1, "B"=2}.has("xxx")
= no
-
+
Table.remove:
short: remove a table entry
description: >
@@ -132,7 +132,7 @@ Table.remove:
t.remove("A")
>> t
= {"B"=2}
-
+
Table.set:
short: set a table entry
description: >
@@ -159,7 +159,7 @@ Table.set:
t.set("C", 3)
>> t
= {"A"=1, "B"=2, "C"=3}
-
+
Table.with_fallback:
short: return a table with a new fallback
description: >