diff options
233 files changed, 414 insertions, 415 deletions
@@ -3846,14 +3846,14 @@ other | `|T|` | The set of items to remove from the original set. | - ## Table.clear ```tomo -Table.clear : func(t: &{K=V} -> Void) +Table.clear : func(t: &{K:V} -> Void) ``` Removes all key-value pairs from the table. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `&{K=V}` | The reference to the table. | - +t | `&{K:V}` | The reference to the table. | - **Return:** Nothing. @@ -3866,7 +3866,7 @@ t | `&{K=V}` | The reference to the table. | - ## Table.get ```tomo -Table.get : func(t: {K=V}, key: K -> V?) +Table.get : func(t: {K:V}, key: K -> V?) ``` Retrieves the value associated with a key, or returns `none` if the key is not present. @@ -3875,7 +3875,7 @@ Default values for the table are ignored. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The table. | - +t | `{K:V}` | The table. | - key | `K` | The key whose associated value is to be retrieved. | - **Return:** The value associated with the key or `none` if the key is not found. @@ -3883,7 +3883,7 @@ key | `K` | The key whose associated value is to be retrieved. | - **Example:** ```tomo ->> t := {"A"=1, "B"=2} +>> t := {"A": 1, "B": 2} >> t.get("A") = 1? @@ -3900,7 +3900,7 @@ key | `K` | The key whose associated value is to be retrieved. | - ## Table.get_or_set ```tomo -Table.get_or_set : func(t: &{K=V}, key: K, default: V -> V?) +Table.get_or_set : func(t: &{K:V}, key: K, default: V -> V?) ``` If the given key is in the table, return the associated value. Otherwise, insert the given default value into the table and return it. @@ -3910,7 +3910,7 @@ The default value is only evaluated if the key is missing. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `&{K=V}` | The table. | - +t | `&{K:V}` | The table. | - key | `K` | The key whose associated value is to be retrieved. | - default | `V` | The default value to insert and return if the key is not present in the table. | - @@ -3919,29 +3919,29 @@ default | `V` | The default value to insert and return if the key is not present **Example:** ```tomo ->> t := &{"A"=@[1, 2, 3]; default=@[]} +>> t := &{"A": @[1, 2, 3]; default=@[]} >> t.get_or_set("A").insert(4) >> t.get_or_set("B").insert(99) >> t -= &{"A"=@[1, 2, 3, 4], "B"=@[99]} += &{"A": @[1, 2, 3, 4], "B": @[99]} >> t.get_or_set("C", @[0, 0, 0]) = @[0, 0, 0] >> t -= &{"A"=@[1, 2, 3, 4], "B"=@[99], "C"=@[0, 0, 0]} += &{"A": @[1, 2, 3, 4], "B": @[99], "C": @[0, 0, 0]} ``` ## Table.has ```tomo -Table.has : func(t: {K=V}, key: K -> Bool) +Table.has : func(t: {K:V}, key: K -> Bool) ``` Checks if the table contains a specified key. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The table. | - +t | `{K:V}` | The table. | - key | `K` | The key to check for presence. | - **Return:** `yes` if the key is present, `no` otherwise. @@ -3949,23 +3949,23 @@ key | `K` | The key to check for presence. | - **Example:** ```tomo ->> {"A"=1, "B"=2}.has("A") +>> {"A": 1, "B": 2}.has("A") = yes ->> {"A"=1, "B"=2}.has("xxx") +>> {"A": 1, "B": 2}.has("xxx") = no ``` ## Table.remove ```tomo -Table.remove : func(t: {K=V}, key: K -> Void) +Table.remove : func(t: {K:V}, key: K -> Void) ``` Removes the key-value pair associated with a specified key. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The reference to the table. | - +t | `{K:V}` | The reference to the table. | - key | `K` | The key of the key-value pair to remove. | - **Return:** Nothing. @@ -3973,23 +3973,23 @@ key | `K` | The key of the key-value pair to remove. | - **Example:** ```tomo -t := {"A"=1, "B"=2} +t := {"A": 1, "B": 2} t.remove("A") >> t -= {"B"=2} += {"B": 2} ``` ## Table.set ```tomo -Table.set : func(t: {K=V}, key: K, value: V -> Void) +Table.set : func(t: {K:V}, key: K, value: V -> Void) ``` Sets or updates the value associated with a specified key. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The reference to the table. | - +t | `{K:V}` | The reference to the table. | - key | `K` | The key to set or update. | - value | `V` | The value to associate with the key. | - @@ -3998,32 +3998,32 @@ value | `V` | The value to associate with the key. | - **Example:** ```tomo -t := {"A"=1, "B"=2} +t := {"A": 1, "B": 2} t.set("C", 3) >> t -= {"A"=1, "B"=2, "C"=3} += {"A": 1, "B": 2, "C": 3} ``` ## Table.with_fallback ```tomo -Table.with_fallback : func(t: {K=V}, fallback: {K=V}? -> {K=V}) +Table.with_fallback : func(t: {K:V}, fallback: {K:V}? -> {K:V}) ``` Return a copy of a table with a different fallback table. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The table whose fallback will be replaced. | - -fallback | `{K=V}?` | The new fallback table value. | - +t | `{K:V}` | The table whose fallback will be replaced. | - +fallback | `{K:V}?` | The new fallback table value. | - **Return:** The original table with a different fallback. **Example:** ```tomo -t := {"A"=1; fallback={"B"=2}} -t2 = t.with_fallback({"B"=3"}) +t := {"A": 1; fallback={"B": 2}} +t2 = t.with_fallback({"B": 3"}) >> t2["B"] = 3? t3 = t.with_fallback(none) @@ -4839,7 +4839,7 @@ last | `Int` | The index of the last grapheme cluster to include (1-indexed). | ## Text.translate ```tomo -Text.translate : func(text: Text, translations: {Text=Text} -> Text) +Text.translate : func(text: Text, translations: {Text:Text} -> Text) ``` Takes a table mapping target texts to their replacements and performs all the replacements in the table on the whole text. At each position, the first matching replacement is applied and the matching moves on to *after* the replacement text, so replacement text is not recursively modified. See Text.replace() for more information about replacement behavior. @@ -4847,7 +4847,7 @@ Takes a table mapping target texts to their replacements and performs all the re Argument | Type | Description | Default ---------|------|-------------|--------- text | `Text` | The text to be translated. | - -translations | `{Text=Text}` | A table mapping from target text to its replacement. | - +translations | `{Text:Text}` | A table mapping from target text to its replacement. | - **Return:** The text with all occurrences of the targets replaced with their corresponding replacement text. @@ -4855,11 +4855,11 @@ translations | `{Text=Text}` | A table mapping from target text to its replaceme **Example:** ```tomo >> "A <tag> & an amperand".translate({ - "&" = "&", - "<" = "<", - ">" = ">", - '"" = """, - "'" = "'", + "&": "&", + "<": "<", + ">": ">", + '"": """, + "'": "'", }) = "A <tag> & an ampersand" diff --git a/api/tables.md b/api/tables.md index 26bfe908..b4c98c57 100644 --- a/api/tables.md +++ b/api/tables.md @@ -6,14 +6,14 @@ ## Table.clear ```tomo -Table.clear : func(t: &{K=V} -> Void) +Table.clear : func(t: &{K:V} -> Void) ``` Removes all key-value pairs from the table. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `&{K=V}` | The reference to the table. | - +t | `&{K:V}` | The reference to the table. | - **Return:** Nothing. @@ -26,7 +26,7 @@ t | `&{K=V}` | The reference to the table. | - ## Table.get ```tomo -Table.get : func(t: {K=V}, key: K -> V?) +Table.get : func(t: {K:V}, key: K -> V?) ``` Retrieves the value associated with a key, or returns `none` if the key is not present. @@ -35,7 +35,7 @@ Default values for the table are ignored. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The table. | - +t | `{K:V}` | The table. | - key | `K` | The key whose associated value is to be retrieved. | - **Return:** The value associated with the key or `none` if the key is not found. @@ -43,7 +43,7 @@ key | `K` | The key whose associated value is to be retrieved. | - **Example:** ```tomo ->> t := {"A"=1, "B"=2} +>> t := {"A": 1, "B": 2} >> t.get("A") = 1? @@ -60,7 +60,7 @@ key | `K` | The key whose associated value is to be retrieved. | - ## Table.get_or_set ```tomo -Table.get_or_set : func(t: &{K=V}, key: K, default: V -> V?) +Table.get_or_set : func(t: &{K:V}, key: K, default: V -> V?) ``` If the given key is in the table, return the associated value. Otherwise, insert the given default value into the table and return it. @@ -70,7 +70,7 @@ The default value is only evaluated if the key is missing. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `&{K=V}` | The table. | - +t | `&{K:V}` | The table. | - key | `K` | The key whose associated value is to be retrieved. | - default | `V` | The default value to insert and return if the key is not present in the table. | - @@ -79,29 +79,29 @@ default | `V` | The default value to insert and return if the key is not present **Example:** ```tomo ->> t := &{"A"=@[1, 2, 3]; default=@[]} +>> t := &{"A": @[1, 2, 3]; default=@[]} >> t.get_or_set("A").insert(4) >> t.get_or_set("B").insert(99) >> t -= &{"A"=@[1, 2, 3, 4], "B"=@[99]} += &{"A": @[1, 2, 3, 4], "B": @[99]} >> t.get_or_set("C", @[0, 0, 0]) = @[0, 0, 0] >> t -= &{"A"=@[1, 2, 3, 4], "B"=@[99], "C"=@[0, 0, 0]} += &{"A": @[1, 2, 3, 4], "B": @[99], "C": @[0, 0, 0]} ``` ## Table.has ```tomo -Table.has : func(t: {K=V}, key: K -> Bool) +Table.has : func(t: {K:V}, key: K -> Bool) ``` Checks if the table contains a specified key. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The table. | - +t | `{K:V}` | The table. | - key | `K` | The key to check for presence. | - **Return:** `yes` if the key is present, `no` otherwise. @@ -109,23 +109,23 @@ key | `K` | The key to check for presence. | - **Example:** ```tomo ->> {"A"=1, "B"=2}.has("A") +>> {"A": 1, "B": 2}.has("A") = yes ->> {"A"=1, "B"=2}.has("xxx") +>> {"A": 1, "B": 2}.has("xxx") = no ``` ## Table.remove ```tomo -Table.remove : func(t: {K=V}, key: K -> Void) +Table.remove : func(t: {K:V}, key: K -> Void) ``` Removes the key-value pair associated with a specified key. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The reference to the table. | - +t | `{K:V}` | The reference to the table. | - key | `K` | The key of the key-value pair to remove. | - **Return:** Nothing. @@ -133,23 +133,23 @@ key | `K` | The key of the key-value pair to remove. | - **Example:** ```tomo -t := {"A"=1, "B"=2} +t := {"A": 1, "B": 2} t.remove("A") >> t -= {"B"=2} += {"B": 2} ``` ## Table.set ```tomo -Table.set : func(t: {K=V}, key: K, value: V -> Void) +Table.set : func(t: {K:V}, key: K, value: V -> Void) ``` Sets or updates the value associated with a specified key. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The reference to the table. | - +t | `{K:V}` | The reference to the table. | - key | `K` | The key to set or update. | - value | `V` | The value to associate with the key. | - @@ -158,32 +158,32 @@ value | `V` | The value to associate with the key. | - **Example:** ```tomo -t := {"A"=1, "B"=2} +t := {"A": 1, "B": 2} t.set("C", 3) >> t -= {"A"=1, "B"=2, "C"=3} += {"A": 1, "B": 2, "C": 3} ``` ## Table.with_fallback ```tomo -Table.with_fallback : func(t: {K=V}, fallback: {K=V}? -> {K=V}) +Table.with_fallback : func(t: {K:V}, fallback: {K:V}? -> {K:V}) ``` Return a copy of a table with a different fallback table. Argument | Type | Description | Default ---------|------|-------------|--------- -t | `{K=V}` | The table whose fallback will be replaced. | - -fallback | `{K=V}?` | The new fallback table value. | - +t | `{K:V}` | The table whose fallback will be replaced. | - +fallback | `{K:V}?` | The new fallback table value. | - **Return:** The original table with a different fallback. **Example:** ```tomo -t := {"A"=1; fallback={"B"=2}} -t2 = t.with_fallback({"B"=3"}) +t := {"A": 1; fallback={"B": 2}} +t2 = t.with_fallback({"B": 3"}) >> t2["B"] = 3? t3 = t.with_fallback(none) diff --git a/api/tables.yaml b/api/tables.yaml index 46f45db9..4b553b18 100644 --- a/api/tables.yaml +++ b/api/tables.yaml @@ -8,7 +8,7 @@ Table.clear: Nothing. args: t: - type: '&{K=V}' + type: '&{K:V}' description: > The reference to the table. example: | @@ -26,7 +26,7 @@ Table.get: The value associated with the key or `none` if the key is not found. args: t: - type: '{K=V}' + type: '{K:V}' description: > The table. key: @@ -34,7 +34,7 @@ Table.get: description: > The key whose associated value is to be retrieved. example: | - >> t := {"A"=1, "B"=2} + >> t := {"A": 1, "B": 2} >> t.get("A") = 1? @@ -64,7 +64,7 @@ Table.get_or_set: table will be mutated if the key is not already present. args: t: - type: "&{K=V}" + type: "&{K:V}" description: > The table. key: @@ -76,16 +76,16 @@ Table.get_or_set: description: > The default value to insert and return if the key is not present in the table. example: | - >> t := &{"A"=@[1, 2, 3]; default=@[]} + >> t := &{"A": @[1, 2, 3]; default=@[]} >> t.get_or_set("A").insert(4) >> t.get_or_set("B").insert(99) >> t - = &{"A"=@[1, 2, 3, 4], "B"=@[99]} + = &{"A": @[1, 2, 3, 4], "B": @[99]} >> t.get_or_set("C", @[0, 0, 0]) = @[0, 0, 0] >> t - = &{"A"=@[1, 2, 3, 4], "B"=@[99], "C"=@[0, 0, 0]} + = &{"A": @[1, 2, 3, 4], "B": @[99], "C": @[0, 0, 0]} Table.has: short: check for a key @@ -97,7 +97,7 @@ Table.has: `yes` if the key is present, `no` otherwise. args: t: - type: '{K=V}' + type: '{K:V}' description: > The table. key: @@ -105,9 +105,9 @@ Table.has: description: > The key to check for presence. example: | - >> {"A"=1, "B"=2}.has("A") + >> {"A": 1, "B": 2}.has("A") = yes - >> {"A"=1, "B"=2}.has("xxx") + >> {"A": 1, "B": 2}.has("xxx") = no Table.remove: @@ -120,7 +120,7 @@ Table.remove: Nothing. args: t: - type: '{K=V}' + type: '{K:V}' description: > The reference to the table. key: @@ -128,10 +128,10 @@ Table.remove: description: > The key of the key-value pair to remove. example: | - t := {"A"=1, "B"=2} + t := {"A": 1, "B": 2} t.remove("A") >> t - = {"B"=2} + = {"B": 2} Table.set: short: set a table entry @@ -143,7 +143,7 @@ Table.set: Nothing. args: t: - type: '{K=V}' + type: '{K:V}' description: > The reference to the table. key: @@ -155,31 +155,31 @@ Table.set: description: > The value to associate with the key. example: | - t := {"A"=1, "B"=2} + t := {"A": 1, "B": 2} t.set("C", 3) >> t - = {"A"=1, "B"=2, "C"=3} + = {"A": 1, "B": 2, "C": 3} Table.with_fallback: short: return a table with a new fallback description: > Return a copy of a table with a different fallback table. return: - type: '{K=V}' + type: '{K:V}' description: > The original table with a different fallback. args: t: - type: '{K=V}' + type: '{K:V}' description: > The table whose fallback will be replaced. fallback: - type: '{K=V}?' + type: '{K:V}?' description: > The new fallback table value. example: | - t := {"A"=1; fallback={"B"=2}} - t2 = t.with_fallback({"B"=3"}) + t := {"A": 1; fallback={"B": 2}} + t2 = t.with_fallback({"B": 3"}) >> t2["B"] = 3? t3 = t.with_fallback(none) diff --git a/api/text.md b/api/text.md index 0d50ee24..22f08242 100644 --- a/api/text.md +++ b/api/text.md @@ -787,7 +787,7 @@ last | `Int` | The index of the last grapheme cluster to include (1-indexed). | ## Text.translate ```tomo -Text.translate : func(text: Text, translations: {Text=Text} -> Text) +Text.translate : func(text: Text, translations: {Text:Text} -> Text) ``` Takes a table mapping target texts to their replacements and performs all the replacements in the table on the whole text. At each position, the first matching replacement is applied and the matching moves on to *after* the replacement text, so replacement text is not recursively modified. See Text.replace() for more information about replacement behavior. @@ -795,7 +795,7 @@ Takes a table mapping target texts to their replacements and performs all the re Argument | Type | Description | Default ---------|------|-------------|--------- text | `Text` | The text to be translated. | - -translations | `{Text=Text}` | A table mapping from target text to its replacement. | - +translations | `{Text:Text}` | A table mapping from target text to its replacement. | - **Return:** The text with all occurrences of the targets replaced with their corresponding replacement text. @@ -803,11 +803,11 @@ translations | `{Text=Text}` | A table mapping from target text to its replaceme **Example:** ```tomo >> "A <tag> & an amperand".translate({ - "&" = "&", - "<" = "<", - ">" = ">", - '"" = """, - "'" = "'", + "&": "&", + "<": "<", + ">": ">", + '"": """, + "'": "'", }) = "A <tag> & an ampersand" diff --git a/api/text.yaml b/api/text.yaml index d209f4b3..dcdcfb67 100644 --- a/api/text.yaml +++ b/api/text.yaml @@ -851,16 +851,16 @@ Text.translate: description: > The text to be translated. translations: - type: '{Text=Text}' + type: '{Text:Text}' description: > A table mapping from target text to its replacement. example: | >> "A <tag> & an amperand".translate({ - "&" = "&", - "<" = "<", - ">" = ">", - '"" = """, - "'" = "'", + "&": "&", + "<": "<", + ">": ">", + '"": """, + "'": "'", }) = "A <tag> & an ampersand" diff --git a/docs/functions.md b/docs/functions.md index d68d72d0..72279c11 100644 --- a/docs/functions.md +++ b/docs/functions.md @@ -82,7 +82,7 @@ func _add(x, y:Int -> Int) return x + y struct add_args(x,y:Int) -add_cache : @{add_args=Int} = @{} +add_cache : @{add_args: Int} = @{} func add(x, y:Int -> Int) args := add_args(x, y) diff --git a/docs/tables.md b/docs/tables.md index 2f07436a..eaf0083e 100644 --- a/docs/tables.md +++ b/docs/tables.md @@ -7,30 +7,30 @@ support *all* types as both keys and values. ## Syntax -Tables are written using `{}` curly braces with `=` equals signs associating key +Tables are written using `{}` curly braces with `:` colons associating key expressions with value expressions and commas between entries: ```tomo -table := {"A"=10, "B"=20} +table := {"A": 10, "B": 20} ``` Empty tables must specify the key and value types explicitly: ```tomo -empty : {Text=Int} = {} +empty : {Text:Int} = {} ``` For type annotations, a table that maps keys with type `K` to values of type -`V` is written as `{K=V}`. +`V` is written as `{K:V}`. ### Comprehensions Similar to lists, tables can use comprehensions to dynamically construct tables: ```tomo -t := {i=10*i for i in 10} -t := {i=10*i for i in 10 if i mod 2 == 0} -t := {-1=-10, i=10*i for i in 10} +t := {i: 10*i for i in 10} +t := {i: 10*i for i in 10 if i mod 2 == 0} +t := {-1: -10, i: 10*i for i in 10} ``` ## Accessing Values @@ -39,7 +39,7 @@ Table values can be accessed with square bracket indexing. The result is an optional value: ```tomo -table := {"A"=1, "B"=2} +table := {"A": 1, "B": 2} >> table["A"] = 1? >> table["missing"] @@ -64,8 +64,8 @@ Tables can specify a fallback table that is used when looking up a value if it is not found in the table itself: ```tomo -t := {"A"=10} -t2 := {"B"=20; fallback=t} +t := {"A": 10} +t2 := {"B": 20; fallback=t} >> t2["A"] = 10? ``` @@ -75,7 +75,7 @@ table value: ```tomo >> t2.fallback -= {"A"=10}? += {"A": 10}? >> t.fallback = none ``` @@ -86,7 +86,7 @@ Tables can specify a default value which will be returned if a value is not present in the table or its fallback (if any). ```tomo -counts := &{"foo"=12; default=0} +counts := &{"foo": 12; default=0} >> counts["foo"] = 12 >> counts["baz"] @@ -105,11 +105,11 @@ You can assign a new key/value mapping or overwrite an existing one using `.set(key, value)` or an `=` assignment statement: ```tomo -t := {"A"=1, "B"=2} +t := {"A": 1, "B": 2} t["B"] = 222 t["C"] = 333 >> t -= {"A"=1, "B"=222, "C"=333} += {"A": 1, "B": 222, "C": 333} ``` ## Length @@ -117,7 +117,7 @@ t["C"] = 333 Table length can be accessed by the `.length` field: ```tomo ->> {"A"=10, "B"=20}.length +>> {"A": 10, "B": 20}.length = 2 ``` @@ -127,7 +127,7 @@ The keys and values of a table can be efficiently accessed as lists using a constant-time immutable slice of the internal data from the table: ```tomo -t := {"A"=10, "B"=20} +t := {"A": 10, "B": 20} >> t.keys = ["A", "B"] >> t.values diff --git a/examples/learnxiny.tm b/examples/learnxiny.tm index 7b1c74ca..05bd7df3 100644 --- a/examples/learnxiny.tm +++ b/examples/learnxiny.tm @@ -103,7 +103,7 @@ func main() break x # This is the same as `stop x` # Tables are efficient hash maps - table := {"one"=1, "two"=2} + table := {"one": 1, "two": 2} >> table["two"] = 2? @@ -122,7 +122,7 @@ func main() = 0 # Empty tables require specifying the key and value types: - empty_table : {Text=Int} + empty_table : {Text:Int} # Tables can be iterated over either by key or key,value: for key in table @@ -140,22 +140,22 @@ func main() # Tables can have a fallback table that's used as a fallback when the key # isn't found in the table itself: - table2 := {"three"=3; fallback=table} + table2 := {"three": 3; fallback=table} >> table2["two"]! = 2 >> table2["three"]! = 3 # Tables can also be created with comprehension loops: - >> {x=10*x for x in 5} - = {1=10, 2=20, 3=30, 4=40, 5=50} + >> {x: 10*x for x in 5} + = {1: 10, 2: 20, 3: 30, 4: 40, 5: 50} # If no default is provided and a missing key is looked up, the program # will print an error message and halt. # Any types can be used in tables, for example, a table mapping lists to # strings: - table3 := {[10, 20]="one", [30, 40, 50]="two"} + table3 := {[10, 20]: "one", [30, 40, 50]: "two"} >> table3[[10, 20]]! = "one" @@ -242,7 +242,7 @@ func takes_many_types( floating_point_number:Num, text_aka_string:Text, list_of_ints:[Int], - table_of_text_to_bools:{Text=Bool}, + table_of_text_to_bools:{Text:Bool}, set_of_ints:|Int|, pointer_to_mutable_list_of_ints:@[Int], optional_int:Int?, @@ -293,7 +293,7 @@ func demo_structs() >> "$alice" == 'Person(name="Alice", age=30)' = yes - table := {alice="first", bob="second"} + table := {alice: "first", bob: "second"} >> table[alice]! = "first" @@ -338,8 +338,8 @@ func demo_enums() >> "$my_shape" == "Circle(1)" = yes - >> {my_shape="nice"} - = {Shape.Circle(1)="nice"} + >> {my_shape: "nice"} + = {Shape.Circle(1): "nice"} func demo_lambdas() # Lambdas, or anonymous functions, can be used like this: diff --git a/man/man3/tomo-Bool.parse.3 b/man/man3/tomo-Bool.parse.3 index e1d5f3b7..66f9c5eb 100644 --- a/man/man3/tomo-Bool.parse.3 +++ b/man/man3/tomo-Bool.parse.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Bool.parse 3 2025-08-16 "Tomo man-pages" +.TH Bool.parse 3 2025-09-06 "Tomo man-pages" .SH NAME Bool.parse \- parse into boolean .SH LIBRARY diff --git a/man/man3/tomo-Byte.get_bit.3 b/man/man3/tomo-Byte.get_bit.3 index 85d6c2ae..73cc9dad 100644 --- a/man/man3/tomo-Byte.get_bit.3 +++ b/man/man3/tomo-Byte.get_bit.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Byte.get_bit 3 2025-06-26 "Tomo man-pages" +.TH Byte.get_bit 3 2025-09-06 "Tomo man-pages" .SH NAME Byte.get_bit \- check whether a bit is set .SH LIBRARY diff --git a/man/man3/tomo-Byte.hex.3 b/man/man3/tomo-Byte.hex.3 index 6b19e82c..32a603e0 100644 --- a/man/man3/tomo-Byte.hex.3 +++ b/man/man3/tomo-Byte.hex.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Byte.hex 3 2025-04-30 "Tomo man-pages" +.TH Byte.hex 3 2025-09-06 "Tomo man-pages" .SH NAME Byte.hex \- convert to hexidecimal .SH LIBRARY diff --git a/man/man3/tomo-Byte.is_between.3 b/man/man3/tomo-Byte.is_between.3 index 9169d998..9128a2ce 100644 --- a/man/man3/tomo-Byte.is_between.3 +++ b/man/man3/tomo-Byte.is_between.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Byte.is_between 3 2025-04-30 "Tomo man-pages" +.TH Byte.is_between 3 2025-09-06 "Tomo man-pages" .SH NAME Byte.is_between \- test if inside a range .SH LIBRARY diff --git a/man/man3/tomo-Byte.parse.3 b/man/man3/tomo-Byte.parse.3 index 1beeb3a4..36e629b5 100644 --- a/man/man3/tomo-Byte.parse.3 +++ b/man/man3/tomo-Byte.parse.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Byte.parse 3 2025-08-16 "Tomo man-pages" +.TH Byte.parse 3 2025-09-06 "Tomo man-pages" .SH NAME Byte.parse \- convert text to a byte .SH LIBRARY diff --git a/man/man3/tomo-Byte.to.3 b/man/man3/tomo-Byte.to.3 index 9982f5da..132cf330 100644 --- a/man/man3/tomo-Byte.to.3 +++ b/man/man3/tomo-Byte.to.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Byte.to 3 2025-04-30 "Tomo man-pages" +.TH Byte.to 3 2025-09-06 "Tomo man-pages" .SH NAME Byte.to \- iterate over a range of bytes .SH LIBRARY diff --git a/man/man3/tomo-Int.abs.3 b/man/man3/tomo-Int.abs.3 index 3deb6928..a1b9ad1a 100644 --- a/man/man3/tomo-Int.abs.3 +++ b/man/man3/tomo-Int.abs.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.abs 3 2025-04-30 "Tomo man-pages" +.TH Int.abs 3 2025-09-06 "Tomo man-pages" .SH NAME Int.abs \- absolute value .SH LIBRARY diff --git a/man/man3/tomo-Int.choose.3 b/man/man3/tomo-Int.choose.3 index 57a79540..2df41991 100644 --- a/man/man3/tomo-Int.choose.3 +++ b/man/man3/tomo-Int.choose.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.choose 3 2025-04-30 "Tomo man-pages" +.TH Int.choose 3 2025-09-06 "Tomo man-pages" .SH NAME Int.choose \- binomial coefficient .SH LIBRARY diff --git a/man/man3/tomo-Int.clamped.3 b/man/man3/tomo-Int.clamped.3 index d951f76b..c2020bff 100644 --- a/man/man3/tomo-Int.clamped.3 +++ b/man/man3/tomo-Int.clamped.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.clamped 3 2025-04-30 "Tomo man-pages" +.TH Int.clamped 3 2025-09-06 "Tomo man-pages" .SH NAME Int.clamped \- clamp an integer .SH LIBRARY diff --git a/man/man3/tomo-Int.factorial.3 b/man/man3/tomo-Int.factorial.3 index eba61613..c0081b5c 100644 --- a/man/man3/tomo-Int.factorial.3 +++ b/man/man3/tomo-Int.factorial.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.factorial 3 2025-04-30 "Tomo man-pages" +.TH Int.factorial 3 2025-09-06 "Tomo man-pages" .SH NAME Int.factorial \- factorial .SH LIBRARY diff --git a/man/man3/tomo-Int.get_bit.3 b/man/man3/tomo-Int.get_bit.3 index e0b98909..8422fbd8 100644 --- a/man/man3/tomo-Int.get_bit.3 +++ b/man/man3/tomo-Int.get_bit.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.get_bit 3 2025-06-25 "Tomo man-pages" +.TH Int.get_bit 3 2025-09-06 "Tomo man-pages" .SH NAME Int.get_bit \- check whether a bit is set .SH LIBRARY diff --git a/man/man3/tomo-Int.hex.3 b/man/man3/tomo-Int.hex.3 index c91f22b4..1ebf8fe3 100644 --- a/man/man3/tomo-Int.hex.3 +++ b/man/man3/tomo-Int.hex.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.hex 3 2025-04-30 "Tomo man-pages" +.TH Int.hex 3 2025-09-06 "Tomo man-pages" .SH NAME Int.hex \- convert to hexidecimal .SH LIBRARY diff --git a/man/man3/tomo-Int.is_between.3 b/man/man3/tomo-Int.is_between.3 index 1f445b12..debdd51a 100644 --- a/man/man3/tomo-Int.is_between.3 +++ b/man/man3/tomo-Int.is_between.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.is_between 3 2025-04-30 "Tomo man-pages" +.TH Int.is_between 3 2025-09-06 "Tomo man-pages" .SH NAME Int.is_between \- test if an int is in a range .SH LIBRARY diff --git a/man/man3/tomo-Int.is_prime.3 b/man/man3/tomo-Int.is_prime.3 index 27769976..67b2d136 100644 --- a/man/man3/tomo-Int.is_prime.3 +++ b/man/man3/tomo-Int.is_prime.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.is_prime 3 2025-04-30 "Tomo man-pages" +.TH Int.is_prime 3 2025-09-06 "Tomo man-pages" .SH NAME Int.is_prime \- check if an integer is prime .SH LIBRARY diff --git a/man/man3/tomo-Int.next_prime.3 b/man/man3/tomo-Int.next_prime.3 index 9904456a..0c8afea6 100644 --- a/man/man3/tomo-Int.next_prime.3 +++ b/man/man3/tomo-Int.next_prime.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.next_prime 3 2025-04-30 "Tomo man-pages" +.TH Int.next_prime 3 2025-09-06 "Tomo man-pages" .SH NAME Int.next_prime \- get the next prime .SH LIBRARY diff --git a/man/man3/tomo-Int.octal.3 b/man/man3/tomo-Int.octal.3 index 06c5dd23..798c0411 100644 --- a/man/man3/tomo-Int.octal.3 +++ b/man/man3/tomo-Int.octal.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.octal 3 2025-04-30 "Tomo man-pages" +.TH Int.octal 3 2025-09-06 "Tomo man-pages" .SH NAME Int.octal \- convert to octal .SH LIBRARY diff --git a/man/man3/tomo-Int.onward.3 b/man/man3/tomo-Int.onward.3 index 17cb4a6b..ba83e8e2 100644 --- a/man/man3/tomo-Int.onward.3 +++ b/man/man3/tomo-Int.onward.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.onward 3 2025-04-30 "Tomo man-pages" +.TH Int.onward 3 2025-09-06 "Tomo man-pages" .SH NAME Int.onward \- iterate from a number onward .SH LIBRARY diff --git a/man/man3/tomo-Int.parse.3 b/man/man3/tomo-Int.parse.3 index 07a00e85..5020ae84 100644 --- a/man/man3/tomo-Int.parse.3 +++ b/man/man3/tomo-Int.parse.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.parse 3 2025-08-16 "Tomo man-pages" +.TH Int.parse 3 2025-09-06 "Tomo man-pages" .SH NAME Int.parse \- convert text to integer .SH LIBRARY diff --git a/man/man3/tomo-Int.prev_prime.3 b/man/man3/tomo-Int.prev_prime.3 index 88cbc86a..33c4aae3 100644 --- a/man/man3/tomo-Int.prev_prime.3 +++ b/man/man3/tomo-Int.prev_prime.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.prev_prime 3 2025-04-30 "Tomo man-pages" +.TH Int.prev_prime 3 2025-09-06 "Tomo man-pages" .SH NAME Int.prev_prime \- get the previous prime .SH LIBRARY diff --git a/man/man3/tomo-Int.sqrt.3 b/man/man3/tomo-Int.sqrt.3 index 99cd53e5..fc5bb923 100644 --- a/man/man3/tomo-Int.sqrt.3 +++ b/man/man3/tomo-Int.sqrt.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.sqrt 3 2025-04-30 "Tomo man-pages" +.TH Int.sqrt 3 2025-09-06 "Tomo man-pages" .SH NAME Int.sqrt \- square root .SH LIBRARY diff --git a/man/man3/tomo-Int.to.3 b/man/man3/tomo-Int.to.3 index 2af4f5fd..0e33b503 100644 --- a/man/man3/tomo-Int.to.3 +++ b/man/man3/tomo-Int.to.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Int.to 3 2025-04-30 "Tomo man-pages" +.TH Int.to 3 2025-09-06 "Tomo man-pages" .SH NAME Int.to \- iterate a range of integers .SH LIBRARY diff --git a/man/man3/tomo-List.binary_search.3 b/man/man3/tomo-List.binary_search.3 index bed89279..3d93f883 100644 --- a/man/man3/tomo-List.binary_search.3 +++ b/man/man3/tomo-List.binary_search.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.binary_search 3 2025-04-30 "Tomo man-pages" +.TH List.binary_search 3 2025-09-06 "Tomo man-pages" .SH NAME List.binary_search \- binary search .SH LIBRARY diff --git a/man/man3/tomo-List.by.3 b/man/man3/tomo-List.by.3 index 54ac9695..cd66e7fb 100644 --- a/man/man3/tomo-List.by.3 +++ b/man/man3/tomo-List.by.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.by 3 2025-04-30 "Tomo man-pages" +.TH List.by 3 2025-09-06 "Tomo man-pages" .SH NAME List.by \- slice by a step value .SH LIBRARY diff --git a/man/man3/tomo-List.clear.3 b/man/man3/tomo-List.clear.3 index e912c983..d6a81b9b 100644 --- a/man/man3/tomo-List.clear.3 +++ b/man/man3/tomo-List.clear.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.clear 3 2025-04-30 "Tomo man-pages" +.TH List.clear 3 2025-09-06 "Tomo man-pages" .SH NAME List.clear \- clear a list .SH LIBRARY diff --git a/man/man3/tomo-List.counts.3 b/man/man3/tomo-List.counts.3 index 350e3044..271ce04f 100644 --- a/man/man3/tomo-List.counts.3 +++ b/man/man3/tomo-List.counts.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.counts 3 2025-04-30 "Tomo man-pages" +.TH List.counts 3 2025-09-06 "Tomo man-pages" .SH NAME List.counts \- count occurrences .SH LIBRARY diff --git a/man/man3/tomo-List.find.3 b/man/man3/tomo-List.find.3 index 9a2ff609..d666e461 100644 --- a/man/man3/tomo-List.find.3 +++ b/man/man3/tomo-List.find.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.find 3 2025-04-30 "Tomo man-pages" +.TH List.find 3 2025-09-06 "Tomo man-pages" .SH NAME List.find \- find an element's index .SH LIBRARY diff --git a/man/man3/tomo-List.from.3 b/man/man3/tomo-List.from.3 index e1df7793..10cc280a 100644 --- a/man/man3/tomo-List.from.3 +++ b/man/man3/tomo-List.from.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.from 3 2025-04-30 "Tomo man-pages" +.TH List.from 3 2025-09-06 "Tomo man-pages" .SH NAME List.from \- slice an array from a start index .SH LIBRARY diff --git a/man/man3/tomo-List.has.3 b/man/man3/tomo-List.has.3 index 7b46066b..9310049b 100644 --- a/man/man3/tomo-List.has.3 +++ b/man/man3/tomo-List.has.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.has 3 2025-04-30 "Tomo man-pages" +.TH List.has 3 2025-09-06 "Tomo man-pages" .SH NAME List.has \- check for member .SH LIBRARY diff --git a/man/man3/tomo-List.heap_pop.3 b/man/man3/tomo-List.heap_pop.3 index 00527870..d71e636e 100644 --- a/man/man3/tomo-List.heap_pop.3 +++ b/man/man3/tomo-List.heap_pop.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.heap_pop 3 2025-04-30 "Tomo man-pages" +.TH List.heap_pop 3 2025-09-06 "Tomo man-pages" .SH NAME List.heap_pop \- heap pop .SH LIBRARY diff --git a/man/man3/tomo-List.heap_push.3 b/man/man3/tomo-List.heap_push.3 index 5da4a40a..e5669f63 100644 --- a/man/man3/tomo-List.heap_push.3 +++ b/man/man3/tomo-List.heap_push.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.heap_push 3 2025-04-30 "Tomo man-pages" +.TH List.heap_push 3 2025-09-06 "Tomo man-pages" .SH NAME List.heap_push \- heap push .SH LIBRARY diff --git a/man/man3/tomo-List.heapify.3 b/man/man3/tomo-List.heapify.3 index af7fafd1..7a267711 100644 --- a/man/man3/tomo-List.heapify.3 +++ b/man/man3/tomo-List.heapify.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.heapify 3 2025-04-30 "Tomo man-pages" +.TH List.heapify 3 2025-09-06 "Tomo man-pages" .SH NAME List.heapify \- convert a list into a heap .SH LIBRARY diff --git a/man/man3/tomo-List.insert.3 b/man/man3/tomo-List.insert.3 index 20d23ef2..61daafac 100644 --- a/man/man3/tomo-List.insert.3 +++ b/man/man3/tomo-List.insert.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.insert 3 2025-04-30 "Tomo man-pages" +.TH List.insert 3 2025-09-06 "Tomo man-pages" .SH NAME List.insert \- add an item to a list .SH LIBRARY diff --git a/man/man3/tomo-List.insert_all.3 b/man/man3/tomo-List.insert_all.3 index bd042209..20730f8f 100644 --- a/man/man3/tomo-List.insert_all.3 +++ b/man/man3/tomo-List.insert_all.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.insert_all 3 2025-04-30 "Tomo man-pages" +.TH List.insert_all 3 2025-09-06 "Tomo man-pages" .SH NAME List.insert_all \- add multiple items to a list .SH LIBRARY diff --git a/man/man3/tomo-List.pop.3 b/man/man3/tomo-List.pop.3 index 1603d9b7..d4de4c15 100644 --- a/man/man3/tomo-List.pop.3 +++ b/man/man3/tomo-List.pop.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.pop 3 2025-04-30 "Tomo man-pages" +.TH List.pop 3 2025-09-06 "Tomo man-pages" .SH NAME List.pop \- pop an item from a list .SH LIBRARY diff --git a/man/man3/tomo-List.random.3 b/man/man3/tomo-List.random.3 index 60713098..fb436bb7 100644 --- a/man/man3/tomo-List.random.3 +++ b/man/man3/tomo-List.random.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.random 3 2025-04-30 "Tomo man-pages" +.TH List.random 3 2025-09-06 "Tomo man-pages" .SH NAME List.random \- pick a random element .SH LIBRARY diff --git a/man/man3/tomo-List.remove_at.3 b/man/man3/tomo-List.remove_at.3 index 0ff876c9..9cfbdcd4 100644 --- a/man/man3/tomo-List.remove_at.3 +++ b/man/man3/tomo-List.remove_at.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.remove_at 3 2025-04-30 "Tomo man-pages" +.TH List.remove_at 3 2025-09-06 "Tomo man-pages" .SH NAME List.remove_at \- remove an item by index .SH LIBRARY diff --git a/man/man3/tomo-List.remove_item.3 b/man/man3/tomo-List.remove_item.3 index 24531400..00ac5a33 100644 --- a/man/man3/tomo-List.remove_item.3 +++ b/man/man3/tomo-List.remove_item.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.remove_item 3 2025-04-30 "Tomo man-pages" +.TH List.remove_item 3 2025-09-06 "Tomo man-pages" .SH NAME List.remove_item \- remove an item by value .SH LIBRARY diff --git a/man/man3/tomo-List.reversed.3 b/man/man3/tomo-List.reversed.3 index c0073391..5de5a6a5 100644 --- a/man/man3/tomo-List.reversed.3 +++ b/man/man3/tomo-List.reversed.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.reversed 3 2025-04-30 "Tomo man-pages" +.TH List.reversed 3 2025-09-06 "Tomo man-pages" .SH NAME List.reversed \- get a reversed list .SH LIBRARY diff --git a/man/man3/tomo-List.sample.3 b/man/man3/tomo-List.sample.3 index 538310f9..ac68efc8 100644 --- a/man/man3/tomo-List.sample.3 +++ b/man/man3/tomo-List.sample.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.sample 3 2025-04-30 "Tomo man-pages" +.TH List.sample 3 2025-09-06 "Tomo man-pages" .SH NAME List.sample \- weighted random choices .SH LIBRARY diff --git a/man/man3/tomo-List.shuffle.3 b/man/man3/tomo-List.shuffle.3 index 7d7e1def..811ed6a0 100644 --- a/man/man3/tomo-List.shuffle.3 +++ b/man/man3/tomo-List.shuffle.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.shuffle 3 2025-04-30 "Tomo man-pages" +.TH List.shuffle 3 2025-09-06 "Tomo man-pages" .SH NAME List.shuffle \- shuffle a list in place .SH LIBRARY diff --git a/man/man3/tomo-List.shuffled.3 b/man/man3/tomo-List.shuffled.3 index 6585cc0f..b060ab8c 100644 --- a/man/man3/tomo-List.shuffled.3 +++ b/man/man3/tomo-List.shuffled.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.shuffled 3 2025-04-30 "Tomo man-pages" +.TH List.shuffled 3 2025-09-06 "Tomo man-pages" .SH NAME List.shuffled \- return a shuffled list .SH LIBRARY diff --git a/man/man3/tomo-List.slice.3 b/man/man3/tomo-List.slice.3 index 73dddbc3..4a08b139 100644 --- a/man/man3/tomo-List.slice.3 +++ b/man/man3/tomo-List.slice.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.slice 3 2025-04-30 "Tomo man-pages" +.TH List.slice 3 2025-09-06 "Tomo man-pages" .SH NAME List.slice \- get a slice of a list .SH LIBRARY diff --git a/man/man3/tomo-List.sort.3 b/man/man3/tomo-List.sort.3 index 62b05b37..84fd406d 100644 --- a/man/man3/tomo-List.sort.3 +++ b/man/man3/tomo-List.sort.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.sort 3 2025-04-30 "Tomo man-pages" +.TH List.sort 3 2025-09-06 "Tomo man-pages" .SH NAME List.sort \- sort a list .SH LIBRARY diff --git a/man/man3/tomo-List.sorted.3 b/man/man3/tomo-List.sorted.3 index 19277682..a38ea908 100644 --- a/man/man3/tomo-List.sorted.3 +++ b/man/man3/tomo-List.sorted.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.sorted 3 2025-04-30 "Tomo man-pages" +.TH List.sorted 3 2025-09-06 "Tomo man-pages" .SH NAME List.sorted \- sorted copy of a list .SH LIBRARY diff --git a/man/man3/tomo-List.to.3 b/man/man3/tomo-List.to.3 index 202ec0c7..3f3dbd14 100644 --- a/man/man3/tomo-List.to.3 +++ b/man/man3/tomo-List.to.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.to 3 2025-04-30 "Tomo man-pages" +.TH List.to 3 2025-09-06 "Tomo man-pages" .SH NAME List.to \- slice a list to an end index .SH LIBRARY diff --git a/man/man3/tomo-List.unique.3 b/man/man3/tomo-List.unique.3 index e24c0ad6..07732a69 100644 --- a/man/man3/tomo-List.unique.3 +++ b/man/man3/tomo-List.unique.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.unique 3 2025-04-30 "Tomo man-pages" +.TH List.unique 3 2025-09-06 "Tomo man-pages" .SH NAME List.unique \- convert a list to a set .SH LIBRARY diff --git a/man/man3/tomo-List.where.3 b/man/man3/tomo-List.where.3 index 8e0d50de..b297effa 100644 --- a/man/man3/tomo-List.where.3 +++ b/man/man3/tomo-List.where.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH List.where 3 2025-04-30 "Tomo man-pages" +.TH List.where 3 2025-09-06 "Tomo man-pages" .SH NAME List.where \- find an index where a predicate matches .SH LIBRARY diff --git a/man/man3/tomo-Num.1_PI.3 b/man/man3/tomo-Num.1_PI.3 index ad91d33b..2d2c0e73 100644 --- a/man/man3/tomo-Num.1_PI.3 +++ b/man/man3/tomo-Num.1_PI.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.1_PI 3 2025-04-30 "Tomo man-pages" +.TH Num.1_PI 3 2025-09-06 "Tomo man-pages" .SH NAME Num.1_PI \- 1/pi .SH LIBRARY diff --git a/man/man3/tomo-Num.2_PI.3 b/man/man3/tomo-Num.2_PI.3 index 3e7db63b..734648d3 100644 --- a/man/man3/tomo-Num.2_PI.3 +++ b/man/man3/tomo-Num.2_PI.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.2_PI 3 2025-04-30 "Tomo man-pages" +.TH Num.2_PI 3 2025-09-06 "Tomo man-pages" .SH NAME Num.2_PI \- 2*pi .SH LIBRARY diff --git a/man/man3/tomo-Num.2_SQRTPI.3 b/man/man3/tomo-Num.2_SQRTPI.3 index 15a19bc2..837a3929 100644 --- a/man/man3/tomo-Num.2_SQRTPI.3 +++ b/man/man3/tomo-Num.2_SQRTPI.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.2_SQRTPI 3 2025-04-30 "Tomo man-pages" +.TH Num.2_SQRTPI 3 2025-09-06 "Tomo man-pages" .SH NAME Num.2_SQRTPI \- 2*sqrt(pi) .SH LIBRARY diff --git a/man/man3/tomo-Num.E.3 b/man/man3/tomo-Num.E.3 index 227c3a78..8a690db8 100644 --- a/man/man3/tomo-Num.E.3 +++ b/man/man3/tomo-Num.E.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.E 3 2025-04-30 "Tomo man-pages" +.TH Num.E 3 2025-09-06 "Tomo man-pages" .SH NAME Num.E \- Euler's constant .SH LIBRARY diff --git a/man/man3/tomo-Num.INF.3 b/man/man3/tomo-Num.INF.3 index 6b7560e8..5b6cd298 100644 --- a/man/man3/tomo-Num.INF.3 +++ b/man/man3/tomo-Num.INF.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.INF 3 2025-04-30 "Tomo man-pages" +.TH Num.INF 3 2025-09-06 "Tomo man-pages" .SH NAME Num.INF \- infinity .SH LIBRARY diff --git a/man/man3/tomo-Num.LN10.3 b/man/man3/tomo-Num.LN10.3 index 00383a60..9d13592c 100644 --- a/man/man3/tomo-Num.LN10.3 +++ b/man/man3/tomo-Num.LN10.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.LN10 3 2025-04-30 "Tomo man-pages" +.TH Num.LN10 3 2025-09-06 "Tomo man-pages" .SH NAME Num.LN10 \- log(10) .SH LIBRARY diff --git a/man/man3/tomo-Num.LN2.3 b/man/man3/tomo-Num.LN2.3 index 6e3d3df6..6726528d 100644 --- a/man/man3/tomo-Num.LN2.3 +++ b/man/man3/tomo-Num.LN2.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.LN2 3 2025-04-30 "Tomo man-pages" +.TH Num.LN2 3 2025-09-06 "Tomo man-pages" .SH NAME Num.LN2 \- log(2) .SH LIBRARY diff --git a/man/man3/tomo-Num.LOG2E.3 b/man/man3/tomo-Num.LOG2E.3 index b729be0c..d290fa75 100644 --- a/man/man3/tomo-Num.LOG2E.3 +++ b/man/man3/tomo-Num.LOG2E.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.LOG2E 3 2025-04-30 "Tomo man-pages" +.TH Num.LOG2E 3 2025-09-06 "Tomo man-pages" .SH NAME Num.LOG2E \- log_2(e) .SH LIBRARY diff --git a/man/man3/tomo-Num.PI.3 b/man/man3/tomo-Num.PI.3 index 61d4a0f8..93307a51 100644 --- a/man/man3/tomo-Num.PI.3 +++ b/man/man3/tomo-Num.PI.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.PI 3 2025-04-30 "Tomo man-pages" +.TH Num.PI 3 2025-09-06 "Tomo man-pages" .SH NAME Num.PI \- pi .SH LIBRARY diff --git a/man/man3/tomo-Num.PI_2.3 b/man/man3/tomo-Num.PI_2.3 index 93e7f4ca..3d0c8f7d 100644 --- a/man/man3/tomo-Num.PI_2.3 +++ b/man/man3/tomo-Num.PI_2.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.PI_2 3 2025-04-30 "Tomo man-pages" +.TH Num.PI_2 3 2025-09-06 "Tomo man-pages" .SH NAME Num.PI_2 \- pi/2 .SH LIBRARY diff --git a/man/man3/tomo-Num.PI_4.3 b/man/man3/tomo-Num.PI_4.3 index c6796704..33ad7db7 100644 --- a/man/man3/tomo-Num.PI_4.3 +++ b/man/man3/tomo-Num.PI_4.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.PI_4 3 2025-04-30 "Tomo man-pages" +.TH Num.PI_4 3 2025-09-06 "Tomo man-pages" .SH NAME Num.PI_4 \- pi/4 .SH LIBRARY diff --git a/man/man3/tomo-Num.SQRT1_2.3 b/man/man3/tomo-Num.SQRT1_2.3 index 0feac353..a04a09be 100644 --- a/man/man3/tomo-Num.SQRT1_2.3 +++ b/man/man3/tomo-Num.SQRT1_2.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.SQRT1_2 3 2025-04-30 "Tomo man-pages" +.TH Num.SQRT1_2 3 2025-09-06 "Tomo man-pages" .SH NAME Num.SQRT1_2 \- sqrt(1/2) .SH LIBRARY diff --git a/man/man3/tomo-Num.SQRT2.3 b/man/man3/tomo-Num.SQRT2.3 index 75bd86bf..109bf230 100644 --- a/man/man3/tomo-Num.SQRT2.3 +++ b/man/man3/tomo-Num.SQRT2.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.SQRT2 3 2025-04-30 "Tomo man-pages" +.TH Num.SQRT2 3 2025-09-06 "Tomo man-pages" .SH NAME Num.SQRT2 \- sqrt(2) .SH LIBRARY diff --git a/man/man3/tomo-Num.TAU.3 b/man/man3/tomo-Num.TAU.3 index 2abc33d2..4a89835c 100644 --- a/man/man3/tomo-Num.TAU.3 +++ b/man/man3/tomo-Num.TAU.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.TAU 3 2025-04-30 "Tomo man-pages" +.TH Num.TAU 3 2025-09-06 "Tomo man-pages" .SH NAME Num.TAU \- 2*pi .SH LIBRARY diff --git a/man/man3/tomo-Num.abs.3 b/man/man3/tomo-Num.abs.3 index c1f1bf31..118608c1 100644 --- a/man/man3/tomo-Num.abs.3 +++ b/man/man3/tomo-Num.abs.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.abs 3 2025-04-30 "Tomo man-pages" +.TH Num.abs 3 2025-09-06 "Tomo man-pages" .SH NAME Num.abs \- absolute value .SH LIBRARY diff --git a/man/man3/tomo-Num.acos.3 b/man/man3/tomo-Num.acos.3 index 78715179..53cb3032 100644 --- a/man/man3/tomo-Num.acos.3 +++ b/man/man3/tomo-Num.acos.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.acos 3 2025-04-30 "Tomo man-pages" +.TH Num.acos 3 2025-09-06 "Tomo man-pages" .SH NAME Num.acos \- arc cosine .SH LIBRARY diff --git a/man/man3/tomo-Num.acosh.3 b/man/man3/tomo-Num.acosh.3 index c971dc0d..5c091802 100644 --- a/man/man3/tomo-Num.acosh.3 +++ b/man/man3/tomo-Num.acosh.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.acosh 3 2025-04-30 "Tomo man-pages" +.TH Num.acosh 3 2025-09-06 "Tomo man-pages" .SH NAME Num.acosh \- arc hyperbolic cosine .SH LIBRARY diff --git a/man/man3/tomo-Num.asin.3 b/man/man3/tomo-Num.asin.3 index 242dbe0b..fb9baccb 100644 --- a/man/man3/tomo-Num.asin.3 +++ b/man/man3/tomo-Num.asin.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.asin 3 2025-04-30 "Tomo man-pages" +.TH Num.asin 3 2025-09-06 "Tomo man-pages" .SH NAME Num.asin \- arc sine .SH LIBRARY diff --git a/man/man3/tomo-Num.asinh.3 b/man/man3/tomo-Num.asinh.3 index ed437b24..6f1cb950 100644 --- a/man/man3/tomo-Num.asinh.3 +++ b/man/man3/tomo-Num.asinh.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.asinh 3 2025-04-30 "Tomo man-pages" +.TH Num.asinh 3 2025-09-06 "Tomo man-pages" .SH NAME Num.asinh \- arc hyperbolic sine .SH LIBRARY diff --git a/man/man3/tomo-Num.atan.3 b/man/man3/tomo-Num.atan.3 index 116c70de..7b673851 100644 --- a/man/man3/tomo-Num.atan.3 +++ b/man/man3/tomo-Num.atan.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.atan 3 2025-04-30 "Tomo man-pages" +.TH Num.atan 3 2025-09-06 "Tomo man-pages" .SH NAME Num.atan \- arc tangent .SH LIBRARY diff --git a/man/man3/tomo-Num.atan2.3 b/man/man3/tomo-Num.atan2.3 index 601047a1..32d01f10 100644 --- a/man/man3/tomo-Num.atan2.3 +++ b/man/man3/tomo-Num.atan2.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.atan2 3 2025-04-30 "Tomo man-pages" +.TH Num.atan2 3 2025-09-06 "Tomo man-pages" .SH NAME Num.atan2 \- arc tangent from 2 variables .SH LIBRARY diff --git a/man/man3/tomo-Num.atanh.3 b/man/man3/tomo-Num.atanh.3 index 43bfcc77..b275d08c 100644 --- a/man/man3/tomo-Num.atanh.3 +++ b/man/man3/tomo-Num.atanh.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.atanh 3 2025-04-30 "Tomo man-pages" +.TH Num.atanh 3 2025-09-06 "Tomo man-pages" .SH NAME Num.atanh \- arc hyperbolic tangent. .SH LIBRARY diff --git a/man/man3/tomo-Num.cbrt.3 b/man/man3/tomo-Num.cbrt.3 index b74d2a15..b2942dad 100644 --- a/man/man3/tomo-Num.cbrt.3 +++ b/man/man3/tomo-Num.cbrt.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.cbrt 3 2025-04-30 "Tomo man-pages" +.TH Num.cbrt 3 2025-09-06 "Tomo man-pages" .SH NAME Num.cbrt \- cube root .SH LIBRARY diff --git a/man/man3/tomo-Num.ceil.3 b/man/man3/tomo-Num.ceil.3 index 639d7c3d..b7ab37ac 100644 --- a/man/man3/tomo-Num.ceil.3 +++ b/man/man3/tomo-Num.ceil.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.ceil 3 2025-04-30 "Tomo man-pages" +.TH Num.ceil 3 2025-09-06 "Tomo man-pages" .SH NAME Num.ceil \- ceiling function .SH LIBRARY diff --git a/man/man3/tomo-Num.clamped.3 b/man/man3/tomo-Num.clamped.3 index 01037d44..e098ac7f 100644 --- a/man/man3/tomo-Num.clamped.3 +++ b/man/man3/tomo-Num.clamped.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.clamped 3 2025-04-30 "Tomo man-pages" +.TH Num.clamped 3 2025-09-06 "Tomo man-pages" .SH NAME Num.clamped \- clamp a number .SH LIBRARY diff --git a/man/man3/tomo-Num.copysign.3 b/man/man3/tomo-Num.copysign.3 index 1fd4d898..f0c1b6e4 100644 --- a/man/man3/tomo-Num.copysign.3 +++ b/man/man3/tomo-Num.copysign.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.copysign 3 2025-04-30 "Tomo man-pages" +.TH Num.copysign 3 2025-09-06 "Tomo man-pages" .SH NAME Num.copysign \- copy a number's sign .SH LIBRARY diff --git a/man/man3/tomo-Num.cos.3 b/man/man3/tomo-Num.cos.3 index ed1df601..896effb4 100644 --- a/man/man3/tomo-Num.cos.3 +++ b/man/man3/tomo-Num.cos.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.cos 3 2025-04-30 "Tomo man-pages" +.TH Num.cos 3 2025-09-06 "Tomo man-pages" .SH NAME Num.cos \- cosine .SH LIBRARY diff --git a/man/man3/tomo-Num.cosh.3 b/man/man3/tomo-Num.cosh.3 index 59ec417d..34a12ad6 100644 --- a/man/man3/tomo-Num.cosh.3 +++ b/man/man3/tomo-Num.cosh.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.cosh 3 2025-04-30 "Tomo man-pages" +.TH Num.cosh 3 2025-09-06 "Tomo man-pages" .SH NAME Num.cosh \- hyperbolic cosine .SH LIBRARY diff --git a/man/man3/tomo-Num.erf.3 b/man/man3/tomo-Num.erf.3 index 5f1a56f9..88ef8750 100644 --- a/man/man3/tomo-Num.erf.3 +++ b/man/man3/tomo-Num.erf.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.erf 3 2025-04-30 "Tomo man-pages" +.TH Num.erf 3 2025-09-06 "Tomo man-pages" .SH NAME Num.erf \- error function .SH LIBRARY diff --git a/man/man3/tomo-Num.erfc.3 b/man/man3/tomo-Num.erfc.3 index cf0bcad7..ae7a75c7 100644 --- a/man/man3/tomo-Num.erfc.3 +++ b/man/man3/tomo-Num.erfc.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.erfc 3 2025-04-30 "Tomo man-pages" +.TH Num.erfc 3 2025-09-06 "Tomo man-pages" .SH NAME Num.erfc \- complimentary error function .SH LIBRARY diff --git a/man/man3/tomo-Num.exp.3 b/man/man3/tomo-Num.exp.3 index e4ac0608..f9c1d693 100644 --- a/man/man3/tomo-Num.exp.3 +++ b/man/man3/tomo-Num.exp.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.exp 3 2025-04-30 "Tomo man-pages" +.TH Num.exp 3 2025-09-06 "Tomo man-pages" .SH NAME Num.exp \- base-e exponentiation .SH LIBRARY diff --git a/man/man3/tomo-Num.exp2.3 b/man/man3/tomo-Num.exp2.3 index 4ac3e868..d5d91170 100644 --- a/man/man3/tomo-Num.exp2.3 +++ b/man/man3/tomo-Num.exp2.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.exp2 3 2025-04-30 "Tomo man-pages" +.TH Num.exp2 3 2025-09-06 "Tomo man-pages" .SH NAME Num.exp2 \- base-2 exponentiation .SH LIBRARY diff --git a/man/man3/tomo-Num.expm1.3 b/man/man3/tomo-Num.expm1.3 index abec8bf1..108ae081 100644 --- a/man/man3/tomo-Num.expm1.3 +++ b/man/man3/tomo-Num.expm1.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.expm1 3 2025-04-30 "Tomo man-pages" +.TH Num.expm1 3 2025-09-06 "Tomo man-pages" .SH NAME Num.expm1 \- base-e exponential minus 1 .SH LIBRARY diff --git a/man/man3/tomo-Num.fdim.3 b/man/man3/tomo-Num.fdim.3 index 32ece8ba..32733728 100644 --- a/man/man3/tomo-Num.fdim.3 +++ b/man/man3/tomo-Num.fdim.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.fdim 3 2025-04-30 "Tomo man-pages" +.TH Num.fdim 3 2025-09-06 "Tomo man-pages" .SH NAME Num.fdim \- positive difference .SH LIBRARY diff --git a/man/man3/tomo-Num.floor.3 b/man/man3/tomo-Num.floor.3 index 63118259..630e96a2 100644 --- a/man/man3/tomo-Num.floor.3 +++ b/man/man3/tomo-Num.floor.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.floor 3 2025-04-30 "Tomo man-pages" +.TH Num.floor 3 2025-09-06 "Tomo man-pages" .SH NAME Num.floor \- floor function .SH LIBRARY diff --git a/man/man3/tomo-Num.hypot.3 b/man/man3/tomo-Num.hypot.3 index c640236f..811e5918 100644 --- a/man/man3/tomo-Num.hypot.3 +++ b/man/man3/tomo-Num.hypot.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.hypot 3 2025-04-30 "Tomo man-pages" +.TH Num.hypot 3 2025-09-06 "Tomo man-pages" .SH NAME Num.hypot \- Euclidean distance function .SH LIBRARY diff --git a/man/man3/tomo-Num.is_between.3 b/man/man3/tomo-Num.is_between.3 index ae08f92a..d05794b6 100644 --- a/man/man3/tomo-Num.is_between.3 +++ b/man/man3/tomo-Num.is_between.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.is_between 3 2025-04-30 "Tomo man-pages" +.TH Num.is_between 3 2025-09-06 "Tomo man-pages" .SH NAME Num.is_between \- check if a number is in a range .SH LIBRARY diff --git a/man/man3/tomo-Num.isfinite.3 b/man/man3/tomo-Num.isfinite.3 index 24a925ab..f11d479d 100644 --- a/man/man3/tomo-Num.isfinite.3 +++ b/man/man3/tomo-Num.isfinite.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.isfinite 3 2025-04-30 "Tomo man-pages" +.TH Num.isfinite 3 2025-09-06 "Tomo man-pages" .SH NAME Num.isfinite \- check for finite number .SH LIBRARY diff --git a/man/man3/tomo-Num.isinf.3 b/man/man3/tomo-Num.isinf.3 index 9e0be863..229ac63d 100644 --- a/man/man3/tomo-Num.isinf.3 +++ b/man/man3/tomo-Num.isinf.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.isinf 3 2025-04-30 "Tomo man-pages" +.TH Num.isinf 3 2025-09-06 "Tomo man-pages" .SH NAME Num.isinf \- check for infinite number .SH LIBRARY diff --git a/man/man3/tomo-Num.j0.3 b/man/man3/tomo-Num.j0.3 index f2d7e0cb..068e80d0 100644 --- a/man/man3/tomo-Num.j0.3 +++ b/man/man3/tomo-Num.j0.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.j0 3 2025-04-30 "Tomo man-pages" +.TH Num.j0 3 2025-09-06 "Tomo man-pages" .SH NAME Num.j0 \- Bessel function .SH LIBRARY diff --git a/man/man3/tomo-Num.j1.3 b/man/man3/tomo-Num.j1.3 index 65d59793..e8999ebd 100644 --- a/man/man3/tomo-Num.j1.3 +++ b/man/man3/tomo-Num.j1.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.j1 3 2025-04-30 "Tomo man-pages" +.TH Num.j1 3 2025-09-06 "Tomo man-pages" .SH NAME Num.j1 \- Bessel function .SH LIBRARY diff --git a/man/man3/tomo-Num.log.3 b/man/man3/tomo-Num.log.3 index de0a2d5c..798e8a82 100644 --- a/man/man3/tomo-Num.log.3 +++ b/man/man3/tomo-Num.log.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.log 3 2025-04-30 "Tomo man-pages" +.TH Num.log 3 2025-09-06 "Tomo man-pages" .SH NAME Num.log \- natural logarithm .SH LIBRARY diff --git a/man/man3/tomo-Num.log10.3 b/man/man3/tomo-Num.log10.3 index 24682774..a8e5bb5a 100644 --- a/man/man3/tomo-Num.log10.3 +++ b/man/man3/tomo-Num.log10.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.log10 3 2025-04-30 "Tomo man-pages" +.TH Num.log10 3 2025-09-06 "Tomo man-pages" .SH NAME Num.log10 \- logarithm base-10 .SH LIBRARY diff --git a/man/man3/tomo-Num.log1p.3 b/man/man3/tomo-Num.log1p.3 index 0fb715d7..e96ca92a 100644 --- a/man/man3/tomo-Num.log1p.3 +++ b/man/man3/tomo-Num.log1p.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.log1p 3 2025-04-30 "Tomo man-pages" +.TH Num.log1p 3 2025-09-06 "Tomo man-pages" .SH NAME Num.log1p \- logarithm of 1 plus x .SH LIBRARY diff --git a/man/man3/tomo-Num.log2.3 b/man/man3/tomo-Num.log2.3 index 68820181..86f842e0 100644 --- a/man/man3/tomo-Num.log2.3 +++ b/man/man3/tomo-Num.log2.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.log2 3 2025-04-30 "Tomo man-pages" +.TH Num.log2 3 2025-09-06 "Tomo man-pages" .SH NAME Num.log2 \- logarithm base-2 .SH LIBRARY diff --git a/man/man3/tomo-Num.logb.3 b/man/man3/tomo-Num.logb.3 index f7de8d87..4e2444d3 100644 --- a/man/man3/tomo-Num.logb.3 +++ b/man/man3/tomo-Num.logb.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.logb 3 2025-04-30 "Tomo man-pages" +.TH Num.logb 3 2025-09-06 "Tomo man-pages" .SH NAME Num.logb \- exponent of a floating point value .SH LIBRARY diff --git a/man/man3/tomo-Num.mix.3 b/man/man3/tomo-Num.mix.3 index a3a06b96..a4f16423 100644 --- a/man/man3/tomo-Num.mix.3 +++ b/man/man3/tomo-Num.mix.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.mix 3 2025-04-30 "Tomo man-pages" +.TH Num.mix 3 2025-09-06 "Tomo man-pages" .SH NAME Num.mix \- mix two numbers by an amount .SH LIBRARY diff --git a/man/man3/tomo-Num.near.3 b/man/man3/tomo-Num.near.3 index 58ec4989..234b36a5 100644 --- a/man/man3/tomo-Num.near.3 +++ b/man/man3/tomo-Num.near.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.near 3 2025-04-30 "Tomo man-pages" +.TH Num.near 3 2025-09-06 "Tomo man-pages" .SH NAME Num.near \- check if two numbers are near each other .SH LIBRARY diff --git a/man/man3/tomo-Num.nextafter.3 b/man/man3/tomo-Num.nextafter.3 index b5b69948..bda587e4 100644 --- a/man/man3/tomo-Num.nextafter.3 +++ b/man/man3/tomo-Num.nextafter.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.nextafter 3 2025-04-30 "Tomo man-pages" +.TH Num.nextafter 3 2025-09-06 "Tomo man-pages" .SH NAME Num.nextafter \- next floating point number .SH LIBRARY diff --git a/man/man3/tomo-Num.parse.3 b/man/man3/tomo-Num.parse.3 index 63165e59..c11138d8 100644 --- a/man/man3/tomo-Num.parse.3 +++ b/man/man3/tomo-Num.parse.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.parse 3 2025-08-16 "Tomo man-pages" +.TH Num.parse 3 2025-09-06 "Tomo man-pages" .SH NAME Num.parse \- convert text to number .SH LIBRARY diff --git a/man/man3/tomo-Num.percent.3 b/man/man3/tomo-Num.percent.3 index 82b9f6b4..fba7be4c 100644 --- a/man/man3/tomo-Num.percent.3 +++ b/man/man3/tomo-Num.percent.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.percent 3 2025-04-30 "Tomo man-pages" +.TH Num.percent 3 2025-09-06 "Tomo man-pages" .SH NAME Num.percent \- format as a percentage .SH LIBRARY diff --git a/man/man3/tomo-Num.rint.3 b/man/man3/tomo-Num.rint.3 index 3a021eb1..1c691204 100644 --- a/man/man3/tomo-Num.rint.3 +++ b/man/man3/tomo-Num.rint.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.rint 3 2025-04-30 "Tomo man-pages" +.TH Num.rint 3 2025-09-06 "Tomo man-pages" .SH NAME Num.rint \- round to nearest integer .SH LIBRARY diff --git a/man/man3/tomo-Num.round.3 b/man/man3/tomo-Num.round.3 index 5cd46d6a..e44c8664 100644 --- a/man/man3/tomo-Num.round.3 +++ b/man/man3/tomo-Num.round.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.round 3 2025-04-30 "Tomo man-pages" +.TH Num.round 3 2025-09-06 "Tomo man-pages" .SH NAME Num.round \- round to nearest integer .SH LIBRARY diff --git a/man/man3/tomo-Num.significand.3 b/man/man3/tomo-Num.significand.3 index 1349d08e..10a6ac8d 100644 --- a/man/man3/tomo-Num.significand.3 +++ b/man/man3/tomo-Num.significand.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.significand 3 2025-04-30 "Tomo man-pages" +.TH Num.significand 3 2025-09-06 "Tomo man-pages" .SH NAME Num.significand \- get mantissa .SH LIBRARY diff --git a/man/man3/tomo-Num.sin.3 b/man/man3/tomo-Num.sin.3 index f338741d..e206a944 100644 --- a/man/man3/tomo-Num.sin.3 +++ b/man/man3/tomo-Num.sin.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.sin 3 2025-04-30 "Tomo man-pages" +.TH Num.sin 3 2025-09-06 "Tomo man-pages" .SH NAME Num.sin \- sine .SH LIBRARY diff --git a/man/man3/tomo-Num.sinh.3 b/man/man3/tomo-Num.sinh.3 index 42ed5158..53e46831 100644 --- a/man/man3/tomo-Num.sinh.3 +++ b/man/man3/tomo-Num.sinh.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.sinh 3 2025-04-30 "Tomo man-pages" +.TH Num.sinh 3 2025-09-06 "Tomo man-pages" .SH NAME Num.sinh \- hyperbolic sine .SH LIBRARY diff --git a/man/man3/tomo-Num.sqrt.3 b/man/man3/tomo-Num.sqrt.3 index 64784753..8450fde2 100644 --- a/man/man3/tomo-Num.sqrt.3 +++ b/man/man3/tomo-Num.sqrt.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.sqrt 3 2025-04-30 "Tomo man-pages" +.TH Num.sqrt 3 2025-09-06 "Tomo man-pages" .SH NAME Num.sqrt \- square root .SH LIBRARY diff --git a/man/man3/tomo-Num.tan.3 b/man/man3/tomo-Num.tan.3 index 3c780247..2ec9605a 100644 --- a/man/man3/tomo-Num.tan.3 +++ b/man/man3/tomo-Num.tan.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.tan 3 2025-04-30 "Tomo man-pages" +.TH Num.tan 3 2025-09-06 "Tomo man-pages" .SH NAME Num.tan \- tangent .SH LIBRARY diff --git a/man/man3/tomo-Num.tanh.3 b/man/man3/tomo-Num.tanh.3 index e9814b22..1524b52a 100644 --- a/man/man3/tomo-Num.tanh.3 +++ b/man/man3/tomo-Num.tanh.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.tanh 3 2025-04-30 "Tomo man-pages" +.TH Num.tanh 3 2025-09-06 "Tomo man-pages" .SH NAME Num.tanh \- hyperbolic tangent .SH LIBRARY diff --git a/man/man3/tomo-Num.tgamma.3 b/man/man3/tomo-Num.tgamma.3 index e5f450a8..70936d14 100644 --- a/man/man3/tomo-Num.tgamma.3 +++ b/man/man3/tomo-Num.tgamma.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.tgamma 3 2025-04-30 "Tomo man-pages" +.TH Num.tgamma 3 2025-09-06 "Tomo man-pages" .SH NAME Num.tgamma \- true gamma function .SH LIBRARY diff --git a/man/man3/tomo-Num.trunc.3 b/man/man3/tomo-Num.trunc.3 index 9d1c9e1e..b4554853 100644 --- a/man/man3/tomo-Num.trunc.3 +++ b/man/man3/tomo-Num.trunc.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.trunc 3 2025-04-30 "Tomo man-pages" +.TH Num.trunc 3 2025-09-06 "Tomo man-pages" .SH NAME Num.trunc \- truncate a number .SH LIBRARY diff --git a/man/man3/tomo-Num.with_precision.3 b/man/man3/tomo-Num.with_precision.3 index 6dabcc0c..eb463bac 100644 --- a/man/man3/tomo-Num.with_precision.3 +++ b/man/man3/tomo-Num.with_precision.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.with_precision 3 2025-04-30 "Tomo man-pages" +.TH Num.with_precision 3 2025-09-06 "Tomo man-pages" .SH NAME Num.with_precision \- round to a given precision .SH LIBRARY diff --git a/man/man3/tomo-Num.y0.3 b/man/man3/tomo-Num.y0.3 index d97523d1..0c1497e5 100644 --- a/man/man3/tomo-Num.y0.3 +++ b/man/man3/tomo-Num.y0.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.y0 3 2025-04-30 "Tomo man-pages" +.TH Num.y0 3 2025-09-06 "Tomo man-pages" .SH NAME Num.y0 \- Bessel function .SH LIBRARY diff --git a/man/man3/tomo-Num.y1.3 b/man/man3/tomo-Num.y1.3 index 8f4a8b59..c5679b2c 100644 --- a/man/man3/tomo-Num.y1.3 +++ b/man/man3/tomo-Num.y1.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Num.y1 3 2025-04-30 "Tomo man-pages" +.TH Num.y1 3 2025-09-06 "Tomo man-pages" .SH NAME Num.y1 \- Bessel function .SH LIBRARY diff --git a/man/man3/tomo-Path.accessed.3 b/man/man3/tomo-Path.accessed.3 index a3b123e8..a936c02b 100644 --- a/man/man3/tomo-Path.accessed.3 +++ b/man/man3/tomo-Path.accessed.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.accessed 3 2025-05-17 "Tomo man-pages" +.TH Path.accessed 3 2025-09-06 "Tomo man-pages" .SH NAME Path.accessed \- access time .SH LIBRARY diff --git a/man/man3/tomo-Path.append.3 b/man/man3/tomo-Path.append.3 index af1f0a5f..548e9f93 100644 --- a/man/man3/tomo-Path.append.3 +++ b/man/man3/tomo-Path.append.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.append 3 2025-05-17 "Tomo man-pages" +.TH Path.append 3 2025-09-06 "Tomo man-pages" .SH NAME Path.append \- append to a file .SH LIBRARY diff --git a/man/man3/tomo-Path.append_bytes.3 b/man/man3/tomo-Path.append_bytes.3 index 3a6dc1c8..cf26e40f 100644 --- a/man/man3/tomo-Path.append_bytes.3 +++ b/man/man3/tomo-Path.append_bytes.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.append_bytes 3 2025-05-17 "Tomo man-pages" +.TH Path.append_bytes 3 2025-09-06 "Tomo man-pages" .SH NAME Path.append_bytes \- append bytes to a file .SH LIBRARY diff --git a/man/man3/tomo-Path.base_name.3 b/man/man3/tomo-Path.base_name.3 index 61ab427f..d88c68a7 100644 --- a/man/man3/tomo-Path.base_name.3 +++ b/man/man3/tomo-Path.base_name.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.base_name 3 2025-05-17 "Tomo man-pages" +.TH Path.base_name 3 2025-09-06 "Tomo man-pages" .SH NAME Path.base_name \- base name of a file .SH LIBRARY diff --git a/man/man3/tomo-Path.by_line.3 b/man/man3/tomo-Path.by_line.3 index ff7a737c..069de363 100644 --- a/man/man3/tomo-Path.by_line.3 +++ b/man/man3/tomo-Path.by_line.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.by_line 3 2025-05-17 "Tomo man-pages" +.TH Path.by_line 3 2025-09-06 "Tomo man-pages" .SH NAME Path.by_line \- iterate by line .SH LIBRARY diff --git a/man/man3/tomo-Path.can_execute.3 b/man/man3/tomo-Path.can_execute.3 index 8ede21d2..3ad25b55 100644 --- a/man/man3/tomo-Path.can_execute.3 +++ b/man/man3/tomo-Path.can_execute.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.can_execute 3 2025-05-17 "Tomo man-pages" +.TH Path.can_execute 3 2025-09-06 "Tomo man-pages" .SH NAME Path.can_execute \- check execute permissions .SH LIBRARY diff --git a/man/man3/tomo-Path.can_read.3 b/man/man3/tomo-Path.can_read.3 index 2848fef2..4b21738c 100644 --- a/man/man3/tomo-Path.can_read.3 +++ b/man/man3/tomo-Path.can_read.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.can_read 3 2025-05-17 "Tomo man-pages" +.TH Path.can_read 3 2025-09-06 "Tomo man-pages" .SH NAME Path.can_read \- check read permissions .SH LIBRARY diff --git a/man/man3/tomo-Path.can_write.3 b/man/man3/tomo-Path.can_write.3 index 51c4527b..8e4c9369 100644 --- a/man/man3/tomo-Path.can_write.3 +++ b/man/man3/tomo-Path.can_write.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.can_write 3 2025-05-17 "Tomo man-pages" +.TH Path.can_write 3 2025-09-06 "Tomo man-pages" .SH NAME Path.can_write \- check write permissions .SH LIBRARY diff --git a/man/man3/tomo-Path.changed.3 b/man/man3/tomo-Path.changed.3 index 21e487b1..d17ff764 100644 --- a/man/man3/tomo-Path.changed.3 +++ b/man/man3/tomo-Path.changed.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.changed 3 2025-05-17 "Tomo man-pages" +.TH Path.changed 3 2025-09-06 "Tomo man-pages" .SH NAME Path.changed \- get the last changed time .SH LIBRARY diff --git a/man/man3/tomo-Path.child.3 b/man/man3/tomo-Path.child.3 index c1d9b27b..0fca4ea6 100644 --- a/man/man3/tomo-Path.child.3 +++ b/man/man3/tomo-Path.child.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.child 3 2025-05-17 "Tomo man-pages" +.TH Path.child 3 2025-09-06 "Tomo man-pages" .SH NAME Path.child \- append a child to a path .SH LIBRARY diff --git a/man/man3/tomo-Path.children.3 b/man/man3/tomo-Path.children.3 index 8b5168a6..579b0416 100644 --- a/man/man3/tomo-Path.children.3 +++ b/man/man3/tomo-Path.children.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.children 3 2025-05-17 "Tomo man-pages" +.TH Path.children 3 2025-09-06 "Tomo man-pages" .SH NAME Path.children \- get children of a directory .SH LIBRARY diff --git a/man/man3/tomo-Path.create_directory.3 b/man/man3/tomo-Path.create_directory.3 index adfe7e97..57c61239 100644 --- a/man/man3/tomo-Path.create_directory.3 +++ b/man/man3/tomo-Path.create_directory.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.create_directory 3 2025-05-17 "Tomo man-pages" +.TH Path.create_directory 3 2025-09-06 "Tomo man-pages" .SH NAME Path.create_directory \- make a directory .SH LIBRARY diff --git a/man/man3/tomo-Path.current_dir.3 b/man/man3/tomo-Path.current_dir.3 index f15439de..4f57dc01 100644 --- a/man/man3/tomo-Path.current_dir.3 +++ b/man/man3/tomo-Path.current_dir.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.current_dir 3 2025-05-17 "Tomo man-pages" +.TH Path.current_dir 3 2025-09-06 "Tomo man-pages" .SH NAME Path.current_dir \- get current directory .SH LIBRARY diff --git a/man/man3/tomo-Path.exists.3 b/man/man3/tomo-Path.exists.3 index 3ac63a15..6368a5a2 100644 --- a/man/man3/tomo-Path.exists.3 +++ b/man/man3/tomo-Path.exists.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.exists 3 2025-05-17 "Tomo man-pages" +.TH Path.exists 3 2025-09-06 "Tomo man-pages" .SH NAME Path.exists \- check if a path exists .SH LIBRARY diff --git a/man/man3/tomo-Path.expand_home.3 b/man/man3/tomo-Path.expand_home.3 index 5dcf6a77..b5752293 100644 --- a/man/man3/tomo-Path.expand_home.3 +++ b/man/man3/tomo-Path.expand_home.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.expand_home 3 2025-05-17 "Tomo man-pages" +.TH Path.expand_home 3 2025-09-06 "Tomo man-pages" .SH NAME Path.expand_home \- expand ~ to $HOME .SH LIBRARY diff --git a/man/man3/tomo-Path.extension.3 b/man/man3/tomo-Path.extension.3 index 08d348c8..8f028113 100644 --- a/man/man3/tomo-Path.extension.3 +++ b/man/man3/tomo-Path.extension.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.extension 3 2025-05-17 "Tomo man-pages" +.TH Path.extension 3 2025-09-06 "Tomo man-pages" .SH NAME Path.extension \- get file extension .SH LIBRARY diff --git a/man/man3/tomo-Path.files.3 b/man/man3/tomo-Path.files.3 index 74b2168b..eade9d1e 100644 --- a/man/man3/tomo-Path.files.3 +++ b/man/man3/tomo-Path.files.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.files 3 2025-05-17 "Tomo man-pages" +.TH Path.files 3 2025-09-06 "Tomo man-pages" .SH NAME Path.files \- list files in a directory .SH LIBRARY diff --git a/man/man3/tomo-Path.from_components.3 b/man/man3/tomo-Path.from_components.3 index 8fe4929f..d83db090 100644 --- a/man/man3/tomo-Path.from_components.3 +++ b/man/man3/tomo-Path.from_components.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.from_components 3 2025-05-17 "Tomo man-pages" +.TH Path.from_components 3 2025-09-06 "Tomo man-pages" .SH NAME Path.from_components \- build a path from components .SH LIBRARY diff --git a/man/man3/tomo-Path.glob.3 b/man/man3/tomo-Path.glob.3 index 6d857322..e75d5033 100644 --- a/man/man3/tomo-Path.glob.3 +++ b/man/man3/tomo-Path.glob.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.glob 3 2025-05-17 "Tomo man-pages" +.TH Path.glob 3 2025-09-06 "Tomo man-pages" .SH NAME Path.glob \- perform file globbing .SH LIBRARY diff --git a/man/man3/tomo-Path.group.3 b/man/man3/tomo-Path.group.3 index bb49b4f3..9d813386 100644 --- a/man/man3/tomo-Path.group.3 +++ b/man/man3/tomo-Path.group.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.group 3 2025-05-17 "Tomo man-pages" +.TH Path.group 3 2025-09-06 "Tomo man-pages" .SH NAME Path.group \- get the owning group .SH LIBRARY diff --git a/man/man3/tomo-Path.has_extension.3 b/man/man3/tomo-Path.has_extension.3 index 4556c819..cf4d48f7 100644 --- a/man/man3/tomo-Path.has_extension.3 +++ b/man/man3/tomo-Path.has_extension.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.has_extension 3 2025-06-24 "Tomo man-pages" +.TH Path.has_extension 3 2025-09-06 "Tomo man-pages" .SH NAME Path.has_extension \- check if a path has a given extension .SH LIBRARY diff --git a/man/man3/tomo-Path.is_directory.3 b/man/man3/tomo-Path.is_directory.3 index 5b098b98..1c7615a8 100644 --- a/man/man3/tomo-Path.is_directory.3 +++ b/man/man3/tomo-Path.is_directory.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.is_directory 3 2025-05-17 "Tomo man-pages" +.TH Path.is_directory 3 2025-09-06 "Tomo man-pages" .SH NAME Path.is_directory \- check if a path is a directory .SH LIBRARY diff --git a/man/man3/tomo-Path.is_file.3 b/man/man3/tomo-Path.is_file.3 index b5d3b8f2..0cae56f9 100644 --- a/man/man3/tomo-Path.is_file.3 +++ b/man/man3/tomo-Path.is_file.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.is_file 3 2025-05-17 "Tomo man-pages" +.TH Path.is_file 3 2025-09-06 "Tomo man-pages" .SH NAME Path.is_file \- check if a path is a file .SH LIBRARY diff --git a/man/man3/tomo-Path.is_socket.3 b/man/man3/tomo-Path.is_socket.3 index 1565cc92..2f38e601 100644 --- a/man/man3/tomo-Path.is_socket.3 +++ b/man/man3/tomo-Path.is_socket.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.is_socket 3 2025-05-17 "Tomo man-pages" +.TH Path.is_socket 3 2025-09-06 "Tomo man-pages" .SH NAME Path.is_socket \- check if a path is a socket .SH LIBRARY diff --git a/man/man3/tomo-Path.is_symlink.3 b/man/man3/tomo-Path.is_symlink.3 index a09ea8c8..1689594e 100644 --- a/man/man3/tomo-Path.is_symlink.3 +++ b/man/man3/tomo-Path.is_symlink.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.is_symlink 3 2025-05-17 "Tomo man-pages" +.TH Path.is_symlink 3 2025-09-06 "Tomo man-pages" .SH NAME Path.is_symlink \- check if a path is a symbolic link .SH LIBRARY diff --git a/man/man3/tomo-Path.modified.3 b/man/man3/tomo-Path.modified.3 index 61d7d064..a783de64 100644 --- a/man/man3/tomo-Path.modified.3 +++ b/man/man3/tomo-Path.modified.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.modified 3 2025-05-17 "Tomo man-pages" +.TH Path.modified 3 2025-09-06 "Tomo man-pages" .SH NAME Path.modified \- get file modification time .SH LIBRARY diff --git a/man/man3/tomo-Path.owner.3 b/man/man3/tomo-Path.owner.3 index af9e40e7..5f256968 100644 --- a/man/man3/tomo-Path.owner.3 +++ b/man/man3/tomo-Path.owner.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.owner 3 2025-05-17 "Tomo man-pages" +.TH Path.owner 3 2025-09-06 "Tomo man-pages" .SH NAME Path.owner \- get file owner .SH LIBRARY diff --git a/man/man3/tomo-Path.parent.3 b/man/man3/tomo-Path.parent.3 index 03528c2c..99f29616 100644 --- a/man/man3/tomo-Path.parent.3 +++ b/man/man3/tomo-Path.parent.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.parent 3 2025-05-17 "Tomo man-pages" +.TH Path.parent 3 2025-09-06 "Tomo man-pages" .SH NAME Path.parent \- get parent directory .SH LIBRARY diff --git a/man/man3/tomo-Path.read.3 b/man/man3/tomo-Path.read.3 index b3c4ba44..19a78c02 100644 --- a/man/man3/tomo-Path.read.3 +++ b/man/man3/tomo-Path.read.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.read 3 2025-05-17 "Tomo man-pages" +.TH Path.read 3 2025-09-06 "Tomo man-pages" .SH NAME Path.read \- read file contents .SH LIBRARY diff --git a/man/man3/tomo-Path.read_bytes.3 b/man/man3/tomo-Path.read_bytes.3 index 22604598..8bcd365e 100644 --- a/man/man3/tomo-Path.read_bytes.3 +++ b/man/man3/tomo-Path.read_bytes.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.read_bytes 3 2025-05-17 "Tomo man-pages" +.TH Path.read_bytes 3 2025-09-06 "Tomo man-pages" .SH NAME Path.read_bytes \- read file contents as bytes .SH LIBRARY diff --git a/man/man3/tomo-Path.relative_to.3 b/man/man3/tomo-Path.relative_to.3 index 5225870b..faa491de 100644 --- a/man/man3/tomo-Path.relative_to.3 +++ b/man/man3/tomo-Path.relative_to.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.relative_to 3 2025-05-17 "Tomo man-pages" +.TH Path.relative_to 3 2025-09-06 "Tomo man-pages" .SH NAME Path.relative_to \- apply a relative path to another .SH LIBRARY diff --git a/man/man3/tomo-Path.remove.3 b/man/man3/tomo-Path.remove.3 index 7dcb4361..ee1b4641 100644 --- a/man/man3/tomo-Path.remove.3 +++ b/man/man3/tomo-Path.remove.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.remove 3 2025-05-17 "Tomo man-pages" +.TH Path.remove 3 2025-09-06 "Tomo man-pages" .SH NAME Path.remove \- remove a file or directory .SH LIBRARY diff --git a/man/man3/tomo-Path.resolved.3 b/man/man3/tomo-Path.resolved.3 index e2479595..c88c29e7 100644 --- a/man/man3/tomo-Path.resolved.3 +++ b/man/man3/tomo-Path.resolved.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.resolved 3 2025-05-17 "Tomo man-pages" +.TH Path.resolved 3 2025-09-06 "Tomo man-pages" .SH NAME Path.resolved \- resolve a path .SH LIBRARY diff --git a/man/man3/tomo-Path.set_owner.3 b/man/man3/tomo-Path.set_owner.3 index f83d9470..f2451d53 100644 --- a/man/man3/tomo-Path.set_owner.3 +++ b/man/man3/tomo-Path.set_owner.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.set_owner 3 2025-05-17 "Tomo man-pages" +.TH Path.set_owner 3 2025-09-06 "Tomo man-pages" .SH NAME Path.set_owner \- set the owner .SH LIBRARY diff --git a/man/man3/tomo-Path.sibling.3 b/man/man3/tomo-Path.sibling.3 index 5cd1afa1..7f20f366 100644 --- a/man/man3/tomo-Path.sibling.3 +++ b/man/man3/tomo-Path.sibling.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.sibling 3 2025-05-17 "Tomo man-pages" +.TH Path.sibling 3 2025-09-06 "Tomo man-pages" .SH NAME Path.sibling \- get another path in the same directory .SH LIBRARY diff --git a/man/man3/tomo-Path.subdirectories.3 b/man/man3/tomo-Path.subdirectories.3 index 1ac0e258..1feabf97 100644 --- a/man/man3/tomo-Path.subdirectories.3 +++ b/man/man3/tomo-Path.subdirectories.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.subdirectories 3 2025-05-17 "Tomo man-pages" +.TH Path.subdirectories 3 2025-09-06 "Tomo man-pages" .SH NAME Path.subdirectories \- get subdirectories .SH LIBRARY diff --git a/man/man3/tomo-Path.unique_directory.3 b/man/man3/tomo-Path.unique_directory.3 index 02b4b7e7..c8a04df1 100644 --- a/man/man3/tomo-Path.unique_directory.3 +++ b/man/man3/tomo-Path.unique_directory.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.unique_directory 3 2025-05-17 "Tomo man-pages" +.TH Path.unique_directory 3 2025-09-06 "Tomo man-pages" .SH NAME Path.unique_directory \- create a directory with a unique name .SH LIBRARY diff --git a/man/man3/tomo-Path.write.3 b/man/man3/tomo-Path.write.3 index 447e407e..0edd40ca 100644 --- a/man/man3/tomo-Path.write.3 +++ b/man/man3/tomo-Path.write.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.write 3 2025-05-17 "Tomo man-pages" +.TH Path.write 3 2025-09-06 "Tomo man-pages" .SH NAME Path.write \- write to a file .SH LIBRARY diff --git a/man/man3/tomo-Path.write_bytes.3 b/man/man3/tomo-Path.write_bytes.3 index d914378f..2482c089 100644 --- a/man/man3/tomo-Path.write_bytes.3 +++ b/man/man3/tomo-Path.write_bytes.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.write_bytes 3 2025-05-17 "Tomo man-pages" +.TH Path.write_bytes 3 2025-09-06 "Tomo man-pages" .SH NAME Path.write_bytes \- write bytes to a file .SH LIBRARY diff --git a/man/man3/tomo-Path.write_unique.3 b/man/man3/tomo-Path.write_unique.3 index 27ac6341..a14e00b7 100644 --- a/man/man3/tomo-Path.write_unique.3 +++ b/man/man3/tomo-Path.write_unique.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.write_unique 3 2025-05-17 "Tomo man-pages" +.TH Path.write_unique 3 2025-09-06 "Tomo man-pages" .SH NAME Path.write_unique \- write to a uniquely named file .SH LIBRARY diff --git a/man/man3/tomo-Path.write_unique_bytes.3 b/man/man3/tomo-Path.write_unique_bytes.3 index 077dc44a..627f86ae 100644 --- a/man/man3/tomo-Path.write_unique_bytes.3 +++ b/man/man3/tomo-Path.write_unique_bytes.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.write_unique_bytes 3 2025-05-17 "Tomo man-pages" +.TH Path.write_unique_bytes 3 2025-09-06 "Tomo man-pages" .SH NAME Path.write_unique_bytes \- write bytes to a uniquely named file .SH LIBRARY diff --git a/man/man3/tomo-Set.add.3 b/man/man3/tomo-Set.add.3 index 2c123079..9d0af218 100644 --- a/man/man3/tomo-Set.add.3 +++ b/man/man3/tomo-Set.add.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.add 3 2025-04-30 "Tomo man-pages" +.TH Set.add 3 2025-09-06 "Tomo man-pages" .SH NAME Set.add \- add item to a set .SH LIBRARY diff --git a/man/man3/tomo-Set.add_all.3 b/man/man3/tomo-Set.add_all.3 index c8496166..0ff06569 100644 --- a/man/man3/tomo-Set.add_all.3 +++ b/man/man3/tomo-Set.add_all.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.add_all 3 2025-04-30 "Tomo man-pages" +.TH Set.add_all 3 2025-09-06 "Tomo man-pages" .SH NAME Set.add_all \- add items to a set .SH LIBRARY diff --git a/man/man3/tomo-Set.clear.3 b/man/man3/tomo-Set.clear.3 index 514622de..e4a6231a 100644 --- a/man/man3/tomo-Set.clear.3 +++ b/man/man3/tomo-Set.clear.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.clear 3 2025-04-30 "Tomo man-pages" +.TH Set.clear 3 2025-09-06 "Tomo man-pages" .SH NAME Set.clear \- clear a set .SH LIBRARY diff --git a/man/man3/tomo-Set.has.3 b/man/man3/tomo-Set.has.3 index 02f8a7ae..2d7683a6 100644 --- a/man/man3/tomo-Set.has.3 +++ b/man/man3/tomo-Set.has.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.has 3 2025-04-30 "Tomo man-pages" +.TH Set.has 3 2025-09-06 "Tomo man-pages" .SH NAME Set.has \- check if a set has an item .SH LIBRARY diff --git a/man/man3/tomo-Set.is_subset_of.3 b/man/man3/tomo-Set.is_subset_of.3 index 378ef09c..2cb5bd97 100644 --- a/man/man3/tomo-Set.is_subset_of.3 +++ b/man/man3/tomo-Set.is_subset_of.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.is_subset_of 3 2025-04-30 "Tomo man-pages" +.TH Set.is_subset_of 3 2025-09-06 "Tomo man-pages" .SH NAME Set.is_subset_of \- check if a set is a subset .SH LIBRARY diff --git a/man/man3/tomo-Set.is_superset_of.3 b/man/man3/tomo-Set.is_superset_of.3 index 1afec7a6..877ffa0e 100644 --- a/man/man3/tomo-Set.is_superset_of.3 +++ b/man/man3/tomo-Set.is_superset_of.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.is_superset_of 3 2025-04-30 "Tomo man-pages" +.TH Set.is_superset_of 3 2025-09-06 "Tomo man-pages" .SH NAME Set.is_superset_of \- check if a set is a superset .SH LIBRARY diff --git a/man/man3/tomo-Set.overlap.3 b/man/man3/tomo-Set.overlap.3 index 56c7e454..165da9cf 100644 --- a/man/man3/tomo-Set.overlap.3 +++ b/man/man3/tomo-Set.overlap.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.overlap 3 2025-04-30 "Tomo man-pages" +.TH Set.overlap 3 2025-09-06 "Tomo man-pages" .SH NAME Set.overlap \- set intersection .SH LIBRARY diff --git a/man/man3/tomo-Set.remove.3 b/man/man3/tomo-Set.remove.3 index d7459d21..8dc2490a 100644 --- a/man/man3/tomo-Set.remove.3 +++ b/man/man3/tomo-Set.remove.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.remove 3 2025-04-30 "Tomo man-pages" +.TH Set.remove 3 2025-09-06 "Tomo man-pages" .SH NAME Set.remove \- remove an item from a set .SH LIBRARY diff --git a/man/man3/tomo-Set.remove_all.3 b/man/man3/tomo-Set.remove_all.3 index d1ac51cd..2074fbe2 100644 --- a/man/man3/tomo-Set.remove_all.3 +++ b/man/man3/tomo-Set.remove_all.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.remove_all 3 2025-04-30 "Tomo man-pages" +.TH Set.remove_all 3 2025-09-06 "Tomo man-pages" .SH NAME Set.remove_all \- remove items from a set .SH LIBRARY diff --git a/man/man3/tomo-Set.with.3 b/man/man3/tomo-Set.with.3 index 6c126c40..081b4427 100644 --- a/man/man3/tomo-Set.with.3 +++ b/man/man3/tomo-Set.with.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.with 3 2025-04-30 "Tomo man-pages" +.TH Set.with 3 2025-09-06 "Tomo man-pages" .SH NAME Set.with \- set union .SH LIBRARY diff --git a/man/man3/tomo-Set.without.3 b/man/man3/tomo-Set.without.3 index e997b852..60f86550 100644 --- a/man/man3/tomo-Set.without.3 +++ b/man/man3/tomo-Set.without.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Set.without 3 2025-04-30 "Tomo man-pages" +.TH Set.without 3 2025-09-06 "Tomo man-pages" .SH NAME Set.without \- set difference .SH LIBRARY diff --git a/man/man3/tomo-Table.clear.3 b/man/man3/tomo-Table.clear.3 index c7eeb8bd..65d337a3 100644 --- a/man/man3/tomo-Table.clear.3 +++ b/man/man3/tomo-Table.clear.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.clear 3 2025-05-17 "Tomo man-pages" +.TH Table.clear 3 2025-09-06 "Tomo man-pages" .SH NAME Table.clear \- clear a table .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Table.clear\ :\ func(t:\ &{K=V}\ ->\ Void) +.BI Table.clear\ :\ func(t:\ &{K:V}\ ->\ Void) .fi .SH DESCRIPTION Removes all key-value pairs from the table. @@ -22,7 +22,7 @@ allbox; lb lb lbx lb l l l l. Name Type Description Default -t &{K=V} The reference to the table. - +t &{K:V} The reference to the table. - .TE .SH RETURN Nothing. diff --git a/man/man3/tomo-Table.get.3 b/man/man3/tomo-Table.get.3 index 97bae770..45e5d5b0 100644 --- a/man/man3/tomo-Table.get.3 +++ b/man/man3/tomo-Table.get.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.get 3 2025-05-17 "Tomo man-pages" +.TH Table.get 3 2025-09-06 "Tomo man-pages" .SH NAME Table.get \- get an item from a table .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Table.get\ :\ func(t:\ {K=V},\ key:\ K\ ->\ V?) +.BI Table.get\ :\ func(t:\ {K:V},\ key:\ K\ ->\ V?) .fi .SH DESCRIPTION Retrieves the value associated with a key, or returns `none` if the key is not present. @@ -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 whose associated value is to be retrieved. - .TE .SH RETURN @@ -33,7 +33,7 @@ Default values for the table are ignored. .SH EXAMPLES .EX ->> t := {"A"=1, "B"=2} +>> t := {"A": 1, "B": 2} >> t.get("A") = 1? diff --git a/man/man3/tomo-Table.get_or_set.3 b/man/man3/tomo-Table.get_or_set.3 index d607171a..5361faf4 100644 --- a/man/man3/tomo-Table.get_or_set.3 +++ b/man/man3/tomo-Table.get_or_set.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.get_or_set 3 2025-05-17 "Tomo man-pages" +.TH Table.get_or_set 3 2025-09-06 "Tomo man-pages" .SH NAME Table.get_or_set \- get an item or set a default if absent .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Table.get_or_set\ :\ func(t:\ &{K=V},\ key:\ K,\ default:\ V\ ->\ V?) +.BI Table.get_or_set\ :\ func(t:\ &{K:V},\ key:\ K,\ default:\ V\ ->\ V?) .fi .SH DESCRIPTION If the given key is in the table, return the associated value. Otherwise, insert the given default value into the table and return it. @@ -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 whose associated value is to be retrieved. - default V The default value to insert and return if the key is not present in the table. - .TE @@ -35,14 +35,14 @@ The default value is only evaluated if the key is missing. .SH EXAMPLES .EX ->> t := &{"A"=@[1, 2, 3]; default=@[]} +>> t := &{"A": @[1, 2, 3]; default=@[]} >> t.get_or_set("A").insert(4) >> t.get_or_set("B").insert(99) >> t -= &{"A"=@[1, 2, 3, 4], "B"=@[99]} += &{"A": @[1, 2, 3, 4], "B": @[99]} >> t.get_or_set("C", @[0, 0, 0]) = @[0, 0, 0] >> t -= &{"A"=@[1, 2, 3, 4], "B"=@[99], "C"=@[0, 0, 0]} += &{"A": @[1, 2, 3, 4], "B": @[99], "C": @[0, 0, 0]} .EE diff --git a/man/man3/tomo-Table.has.3 b/man/man3/tomo-Table.has.3 index 40111400..96b4fa0c 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-06 "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,8 @@ key K The key to check for presence. - .SH EXAMPLES .EX ->> {"A"=1, "B"=2}.has("A") +>> {"A": 1, "B": 2}.has("A") = yes ->> {"A"=1, "B"=2}.has("xxx") +>> {"A": 1, "B": 2}.has("xxx") = no .EE diff --git a/man/man3/tomo-Table.remove.3 b/man/man3/tomo-Table.remove.3 index 5fbb31d7..8d96fb88 100644 --- a/man/man3/tomo-Table.remove.3 +++ b/man/man3/tomo-Table.remove.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.remove 3 2025-05-17 "Tomo man-pages" +.TH Table.remove 3 2025-09-06 "Tomo man-pages" .SH NAME Table.remove \- remove a table entry .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Table.remove\ :\ func(t:\ {K=V},\ key:\ K\ ->\ Void) +.BI Table.remove\ :\ func(t:\ {K:V},\ key:\ K\ ->\ Void) .fi .SH DESCRIPTION Removes the key-value pair associated with a specified key. @@ -22,7 +22,7 @@ allbox; lb lb lbx lb l l l l. Name Type Description Default -t {K=V} The reference to the table. - +t {K:V} The reference to the table. - key K The key of the key-value pair to remove. - .TE .SH RETURN @@ -30,8 +30,8 @@ Nothing. .SH EXAMPLES .EX -t := {"A"=1, "B"=2} +t := {"A": 1, "B": 2} t.remove("A") >> t -= {"B"=2} += {"B": 2} .EE diff --git a/man/man3/tomo-Table.set.3 b/man/man3/tomo-Table.set.3 index b3ffdd1d..9c681a80 100644 --- a/man/man3/tomo-Table.set.3 +++ b/man/man3/tomo-Table.set.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.set 3 2025-05-17 "Tomo man-pages" +.TH Table.set 3 2025-09-06 "Tomo man-pages" .SH NAME Table.set \- set a table entry .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Table.set\ :\ func(t:\ {K=V},\ key:\ K,\ value:\ V\ ->\ Void) +.BI Table.set\ :\ func(t:\ {K:V},\ key:\ K,\ value:\ V\ ->\ Void) .fi .SH DESCRIPTION Sets or updates the value associated with a specified key. @@ -22,7 +22,7 @@ allbox; lb lb lbx lb l l l l. Name Type Description Default -t {K=V} The reference to the table. - +t {K:V} The reference to the table. - key K The key to set or update. - value V The value to associate with the key. - .TE @@ -31,8 +31,8 @@ Nothing. .SH EXAMPLES .EX -t := {"A"=1, "B"=2} +t := {"A": 1, "B": 2} t.set("C", 3) >> t -= {"A"=1, "B"=2, "C"=3} += {"A": 1, "B": 2, "C": 3} .EE diff --git a/man/man3/tomo-Table.with_fallback.3 b/man/man3/tomo-Table.with_fallback.3 index 89c78fe1..203d8a26 100644 --- a/man/man3/tomo-Table.with_fallback.3 +++ b/man/man3/tomo-Table.with_fallback.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.with_fallback 3 2025-06-24 "Tomo man-pages" +.TH Table.with_fallback 3 2025-09-06 "Tomo man-pages" .SH NAME Table.with_fallback \- return a table with a new fallback .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Table.with_fallback\ :\ func(t:\ {K=V},\ fallback:\ {K=V}?\ ->\ {K=V}) +.BI Table.with_fallback\ :\ func(t:\ {K:V},\ fallback:\ {K:V}?\ ->\ {K:V}) .fi .SH DESCRIPTION Return a copy of a table with a different fallback table. @@ -22,16 +22,16 @@ allbox; lb lb lbx lb l l l l. Name Type Description Default -t {K=V} The table whose fallback will be replaced. - -fallback {K=V}? The new fallback table value. - +t {K:V} The table whose fallback will be replaced. - +fallback {K:V}? The new fallback table value. - .TE .SH RETURN The original table with a different fallback. .SH EXAMPLES .EX -t := {"A"=1; fallback={"B"=2}} -t2 = t.with_fallback({"B"=3"}) +t := {"A": 1; fallback={"B": 2}} +t2 = t.with_fallback({"B": 3"}) >> t2["B"] = 3? t3 = t.with_fallback(none) diff --git a/man/man3/tomo-Table.xor.3 b/man/man3/tomo-Table.xor.3 index 8d3cb8f2..288eb108 100644 --- a/man/man3/tomo-Table.xor.3 +++ b/man/man3/tomo-Table.xor.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Table.xor 3 2025-06-24 "Tomo man-pages" +.TH Table.xor 3 2025-09-06 "Tomo man-pages" .SH NAME Table.xor \- symmetric difference .SH LIBRARY diff --git a/man/man3/tomo-Text.as_c_string.3 b/man/man3/tomo-Text.as_c_string.3 index ad3c0a2d..ddf4f1cd 100644 --- a/man/man3/tomo-Text.as_c_string.3 +++ b/man/man3/tomo-Text.as_c_string.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.as_c_string 3 2025-04-30 "Tomo man-pages" +.TH Text.as_c_string 3 2025-09-06 "Tomo man-pages" .SH NAME Text.as_c_string \- convert to C-style string .SH LIBRARY diff --git a/man/man3/tomo-Text.at.3 b/man/man3/tomo-Text.at.3 index e9b3e8ae..e4ed5761 100644 --- a/man/man3/tomo-Text.at.3 +++ b/man/man3/tomo-Text.at.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.at 3 2025-04-30 "Tomo man-pages" +.TH Text.at 3 2025-09-06 "Tomo man-pages" .SH NAME Text.at \- get a letter .SH LIBRARY diff --git a/man/man3/tomo-Text.by_line.3 b/man/man3/tomo-Text.by_line.3 index 6f28263b..2e678c9e 100644 --- a/man/man3/tomo-Text.by_line.3 +++ b/man/man3/tomo-Text.by_line.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.by_line 3 2025-04-30 "Tomo man-pages" +.TH Text.by_line 3 2025-09-06 "Tomo man-pages" .SH NAME Text.by_line \- iterate by line .SH LIBRARY diff --git a/man/man3/tomo-Text.by_split.3 b/man/man3/tomo-Text.by_split.3 index 3acef72e..252b0525 100644 --- a/man/man3/tomo-Text.by_split.3 +++ b/man/man3/tomo-Text.by_split.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.by_split 3 2025-04-30 "Tomo man-pages" +.TH Text.by_split 3 2025-09-06 "Tomo man-pages" .SH NAME Text.by_split \- iterate by a spliting text .SH LIBRARY diff --git a/man/man3/tomo-Text.by_split_any.3 b/man/man3/tomo-Text.by_split_any.3 index c8616c82..ca148f3d 100644 --- a/man/man3/tomo-Text.by_split_any.3 +++ b/man/man3/tomo-Text.by_split_any.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.by_split_any 3 2025-04-30 "Tomo man-pages" +.TH Text.by_split_any 3 2025-09-06 "Tomo man-pages" .SH NAME Text.by_split_any \- iterate by one of many splitting characters .SH LIBRARY diff --git a/man/man3/tomo-Text.caseless_equals.3 b/man/man3/tomo-Text.caseless_equals.3 index 97850208..60c2e984 100644 --- a/man/man3/tomo-Text.caseless_equals.3 +++ b/man/man3/tomo-Text.caseless_equals.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.caseless_equals 3 2025-04-30 "Tomo man-pages" +.TH Text.caseless_equals 3 2025-09-06 "Tomo man-pages" .SH NAME Text.caseless_equals \- case-insensitive comparison .SH LIBRARY diff --git a/man/man3/tomo-Text.codepoint_names.3 b/man/man3/tomo-Text.codepoint_names.3 index 36c9ba06..15f3ed73 100644 --- a/man/man3/tomo-Text.codepoint_names.3 +++ b/man/man3/tomo-Text.codepoint_names.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.codepoint_names 3 2025-04-30 "Tomo man-pages" +.TH Text.codepoint_names 3 2025-09-06 "Tomo man-pages" .SH NAME Text.codepoint_names \- get unicode codepoint names .SH LIBRARY diff --git a/man/man3/tomo-Text.ends_with.3 b/man/man3/tomo-Text.ends_with.3 index 38fa4c0b..e9cec092 100644 --- a/man/man3/tomo-Text.ends_with.3 +++ b/man/man3/tomo-Text.ends_with.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.ends_with 3 2025-08-16 "Tomo man-pages" +.TH Text.ends_with 3 2025-09-06 "Tomo man-pages" .SH NAME Text.ends_with \- check suffix .SH LIBRARY diff --git a/man/man3/tomo-Text.from.3 b/man/man3/tomo-Text.from.3 index 43ab22ab..ab47bd92 100644 --- a/man/man3/tomo-Text.from.3 +++ b/man/man3/tomo-Text.from.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.from 3 2025-04-30 "Tomo man-pages" +.TH Text.from 3 2025-09-06 "Tomo man-pages" .SH NAME Text.from \- slice from a starting index .SH LIBRARY diff --git a/man/man3/tomo-Text.from_c_string.3 b/man/man3/tomo-Text.from_c_string.3 index 2670f484..19e5d8c5 100644 --- a/man/man3/tomo-Text.from_c_string.3 +++ b/man/man3/tomo-Text.from_c_string.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.from_c_string 3 2025-04-30 "Tomo man-pages" +.TH Text.from_c_string 3 2025-09-06 "Tomo man-pages" .SH NAME Text.from_c_string \- convert C-style string to text .SH LIBRARY diff --git a/man/man3/tomo-Text.from_codepoint_names.3 b/man/man3/tomo-Text.from_codepoint_names.3 index 4d9dc59d..b0730b9e 100644 --- a/man/man3/tomo-Text.from_codepoint_names.3 +++ b/man/man3/tomo-Text.from_codepoint_names.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.from_codepoint_names 3 2025-04-30 "Tomo man-pages" +.TH Text.from_codepoint_names 3 2025-09-06 "Tomo man-pages" .SH NAME Text.from_codepoint_names \- convert list of unicode codepoint names to text .SH LIBRARY diff --git a/man/man3/tomo-Text.has.3 b/man/man3/tomo-Text.has.3 index c9990add..d006f222 100644 --- a/man/man3/tomo-Text.has.3 +++ b/man/man3/tomo-Text.has.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.has 3 2025-04-30 "Tomo man-pages" +.TH Text.has 3 2025-09-06 "Tomo man-pages" .SH NAME Text.has \- check for substring .SH LIBRARY diff --git a/man/man3/tomo-Text.join.3 b/man/man3/tomo-Text.join.3 index 3552523e..96b25099 100644 --- a/man/man3/tomo-Text.join.3 +++ b/man/man3/tomo-Text.join.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.join 3 2025-04-30 "Tomo man-pages" +.TH Text.join 3 2025-09-06 "Tomo man-pages" .SH NAME Text.join \- concatenate with separator .SH LIBRARY diff --git a/man/man3/tomo-Text.left_pad.3 b/man/man3/tomo-Text.left_pad.3 index 28b1d000..68adf254 100644 --- a/man/man3/tomo-Text.left_pad.3 +++ b/man/man3/tomo-Text.left_pad.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.left_pad 3 2025-04-30 "Tomo man-pages" +.TH Text.left_pad 3 2025-09-06 "Tomo man-pages" .SH NAME Text.left_pad \- left-pad text .SH LIBRARY diff --git a/man/man3/tomo-Text.lines.3 b/man/man3/tomo-Text.lines.3 index 855abbd8..a9f55c46 100644 --- a/man/man3/tomo-Text.lines.3 +++ b/man/man3/tomo-Text.lines.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.lines 3 2025-04-30 "Tomo man-pages" +.TH Text.lines 3 2025-09-06 "Tomo man-pages" .SH NAME Text.lines \- get list of lines .SH LIBRARY diff --git a/man/man3/tomo-Text.lower.3 b/man/man3/tomo-Text.lower.3 index 079fd01b..57d8581b 100644 --- a/man/man3/tomo-Text.lower.3 +++ b/man/man3/tomo-Text.lower.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.lower 3 2025-04-30 "Tomo man-pages" +.TH Text.lower 3 2025-09-06 "Tomo man-pages" .SH NAME Text.lower \- convert to lowercase .SH LIBRARY diff --git a/man/man3/tomo-Text.middle_pad.3 b/man/man3/tomo-Text.middle_pad.3 index 815f54f1..a67a4f27 100644 --- a/man/man3/tomo-Text.middle_pad.3 +++ b/man/man3/tomo-Text.middle_pad.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.middle_pad 3 2025-04-30 "Tomo man-pages" +.TH Text.middle_pad 3 2025-09-06 "Tomo man-pages" .SH NAME Text.middle_pad \- pad text, centered .SH LIBRARY diff --git a/man/man3/tomo-Text.quoted.3 b/man/man3/tomo-Text.quoted.3 index 83a40266..eb377453 100644 --- a/man/man3/tomo-Text.quoted.3 +++ b/man/man3/tomo-Text.quoted.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.quoted 3 2025-04-30 "Tomo man-pages" +.TH Text.quoted 3 2025-09-06 "Tomo man-pages" .SH NAME Text.quoted \- add quotation marks and escapes .SH LIBRARY diff --git a/man/man3/tomo-Text.repeat.3 b/man/man3/tomo-Text.repeat.3 index 24effec4..75fd1599 100644 --- a/man/man3/tomo-Text.repeat.3 +++ b/man/man3/tomo-Text.repeat.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.repeat 3 2025-04-30 "Tomo man-pages" +.TH Text.repeat 3 2025-09-06 "Tomo man-pages" .SH NAME Text.repeat \- repeat text .SH LIBRARY diff --git a/man/man3/tomo-Text.replace.3 b/man/man3/tomo-Text.replace.3 index 6d4f20b5..c5801892 100644 --- a/man/man3/tomo-Text.replace.3 +++ b/man/man3/tomo-Text.replace.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.replace 3 2025-04-30 "Tomo man-pages" +.TH Text.replace 3 2025-09-06 "Tomo man-pages" .SH NAME Text.replace \- replace a substring .SH LIBRARY diff --git a/man/man3/tomo-Text.reversed.3 b/man/man3/tomo-Text.reversed.3 index c855c909..77528dd8 100644 --- a/man/man3/tomo-Text.reversed.3 +++ b/man/man3/tomo-Text.reversed.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.reversed 3 2025-04-30 "Tomo man-pages" +.TH Text.reversed 3 2025-09-06 "Tomo man-pages" .SH NAME Text.reversed \- get a reversed copy .SH LIBRARY diff --git a/man/man3/tomo-Text.right_pad.3 b/man/man3/tomo-Text.right_pad.3 index ef0cd189..7283ab03 100644 --- a/man/man3/tomo-Text.right_pad.3 +++ b/man/man3/tomo-Text.right_pad.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.right_pad 3 2025-04-30 "Tomo man-pages" +.TH Text.right_pad 3 2025-09-06 "Tomo man-pages" .SH NAME Text.right_pad \- right-pad text .SH LIBRARY diff --git a/man/man3/tomo-Text.slice.3 b/man/man3/tomo-Text.slice.3 index a716b699..edd17bfd 100644 --- a/man/man3/tomo-Text.slice.3 +++ b/man/man3/tomo-Text.slice.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.slice 3 2025-04-30 "Tomo man-pages" +.TH Text.slice 3 2025-09-06 "Tomo man-pages" .SH NAME Text.slice \- get a slice of a text .SH LIBRARY diff --git a/man/man3/tomo-Text.split.3 b/man/man3/tomo-Text.split.3 index 5eba316f..11d4eb33 100644 --- a/man/man3/tomo-Text.split.3 +++ b/man/man3/tomo-Text.split.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.split 3 2025-04-30 "Tomo man-pages" +.TH Text.split 3 2025-09-06 "Tomo man-pages" .SH NAME Text.split \- split a text by a delimiter .SH LIBRARY diff --git a/man/man3/tomo-Text.split_any.3 b/man/man3/tomo-Text.split_any.3 index 7a57433f..37fd8742 100644 --- a/man/man3/tomo-Text.split_any.3 +++ b/man/man3/tomo-Text.split_any.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.split_any 3 2025-04-30 "Tomo man-pages" +.TH Text.split_any 3 2025-09-06 "Tomo man-pages" .SH NAME Text.split_any \- split a text by multiple delimiters .SH LIBRARY diff --git a/man/man3/tomo-Text.starts_with.3 b/man/man3/tomo-Text.starts_with.3 index fafa2a55..c97a85a7 100644 --- a/man/man3/tomo-Text.starts_with.3 +++ b/man/man3/tomo-Text.starts_with.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.starts_with 3 2025-08-16 "Tomo man-pages" +.TH Text.starts_with 3 2025-09-06 "Tomo man-pages" .SH NAME Text.starts_with \- check prefix .SH LIBRARY diff --git a/man/man3/tomo-Text.title.3 b/man/man3/tomo-Text.title.3 index dfdecf21..77d5fabf 100644 --- a/man/man3/tomo-Text.title.3 +++ b/man/man3/tomo-Text.title.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.title 3 2025-04-30 "Tomo man-pages" +.TH Text.title 3 2025-09-06 "Tomo man-pages" .SH NAME Text.title \- titlecase .SH LIBRARY diff --git a/man/man3/tomo-Text.to.3 b/man/man3/tomo-Text.to.3 index 702698a0..167ff166 100644 --- a/man/man3/tomo-Text.to.3 +++ b/man/man3/tomo-Text.to.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.to 3 2025-04-30 "Tomo man-pages" +.TH Text.to 3 2025-09-06 "Tomo man-pages" .SH NAME Text.to \- slice to an end index .SH LIBRARY diff --git a/man/man3/tomo-Text.translate.3 b/man/man3/tomo-Text.translate.3 index e8b36ec4..923f506c 100644 --- a/man/man3/tomo-Text.translate.3 +++ b/man/man3/tomo-Text.translate.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.translate 3 2025-04-30 "Tomo man-pages" +.TH Text.translate 3 2025-09-06 "Tomo man-pages" .SH NAME Text.translate \- perform multiple replacements .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Text.translate\ :\ func(text:\ Text,\ translations:\ {Text=Text}\ ->\ Text) +.BI Text.translate\ :\ func(text:\ Text,\ translations:\ {Text:Text}\ ->\ Text) .fi .SH DESCRIPTION Takes a table mapping target texts to their replacements and performs all the replacements in the table on the whole text. At each position, the first matching replacement is applied and the matching moves on to *after* the replacement text, so replacement text is not recursively modified. See Text.replace() for more information about replacement behavior. @@ -23,7 +23,7 @@ lb lb lbx lb l l l l. Name Type Description Default text Text The text to be translated. - -translations {Text=Text} A table mapping from target text to its replacement. - +translations {Text:Text} A table mapping from target text to its replacement. - .TE .SH RETURN The text with all occurrences of the targets replaced with their corresponding replacement text. @@ -31,11 +31,11 @@ The text with all occurrences of the targets replaced with their corresponding r .SH EXAMPLES .EX >> "A <tag> & an amperand".translate({ - "&" = "&", - "<" = "<", - ">" = ">", - '"" = """, - "'" = "'", + "&": "&", + "<": "<", + ">": ">", + '"": """, + "'": "'", }) = "A <tag> & an ampersand" .EE diff --git a/man/man3/tomo-Text.trim.3 b/man/man3/tomo-Text.trim.3 index eec1750c..eff94489 100644 --- a/man/man3/tomo-Text.trim.3 +++ b/man/man3/tomo-Text.trim.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.trim 3 2025-04-30 "Tomo man-pages" +.TH Text.trim 3 2025-09-06 "Tomo man-pages" .SH NAME Text.trim \- trim characters .SH LIBRARY diff --git a/man/man3/tomo-Text.upper.3 b/man/man3/tomo-Text.upper.3 index 522702db..1d93813c 100644 --- a/man/man3/tomo-Text.upper.3 +++ b/man/man3/tomo-Text.upper.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.upper 3 2025-04-30 "Tomo man-pages" +.TH Text.upper 3 2025-09-06 "Tomo man-pages" .SH NAME Text.upper \- uppercase .SH LIBRARY diff --git a/man/man3/tomo-Text.width.3 b/man/man3/tomo-Text.width.3 index 796a4e47..9c82600d 100644 --- a/man/man3/tomo-Text.width.3 +++ b/man/man3/tomo-Text.width.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.width 3 2025-04-30 "Tomo man-pages" +.TH Text.width 3 2025-09-06 "Tomo man-pages" .SH NAME Text.width \- get display width .SH LIBRARY diff --git a/man/man3/tomo-Text.without_prefix.3 b/man/man3/tomo-Text.without_prefix.3 index 34d55ea3..b49aa881 100644 --- a/man/man3/tomo-Text.without_prefix.3 +++ b/man/man3/tomo-Text.without_prefix.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.without_prefix 3 2025-04-30 "Tomo man-pages" +.TH Text.without_prefix 3 2025-09-06 "Tomo man-pages" .SH NAME Text.without_prefix \- remove prefix .SH LIBRARY diff --git a/man/man3/tomo-Text.without_suffix.3 b/man/man3/tomo-Text.without_suffix.3 index d5510b77..0d6bf1f9 100644 --- a/man/man3/tomo-Text.without_suffix.3 +++ b/man/man3/tomo-Text.without_suffix.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Text.without_suffix 3 2025-04-30 "Tomo man-pages" +.TH Text.without_suffix 3 2025-09-06 "Tomo man-pages" .SH NAME Text.without_suffix \- remove suffix .SH LIBRARY diff --git a/man/man3/tomo-USE_COLOR.3 b/man/man3/tomo-USE_COLOR.3 index 3b48329d..c390acc2 100644 --- a/man/man3/tomo-USE_COLOR.3 +++ b/man/man3/tomo-USE_COLOR.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH USE_COLOR 3 2025-05-17 "Tomo man-pages" +.TH USE_COLOR 3 2025-09-06 "Tomo man-pages" .SH NAME USE_COLOR \- whether to use colors .SH LIBRARY diff --git a/man/man3/tomo-ask.3 b/man/man3/tomo-ask.3 index 88aa0964..5886fc35 100644 --- a/man/man3/tomo-ask.3 +++ b/man/man3/tomo-ask.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH ask 3 2025-05-17 "Tomo man-pages" +.TH ask 3 2025-09-06 "Tomo man-pages" .SH NAME ask \- get user input .SH LIBRARY diff --git a/man/man3/tomo-exit.3 b/man/man3/tomo-exit.3 index 48e0bd79..e042aa61 100644 --- a/man/man3/tomo-exit.3 +++ b/man/man3/tomo-exit.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH exit 3 2025-05-17 "Tomo man-pages" +.TH exit 3 2025-09-06 "Tomo man-pages" .SH NAME exit \- exit the program .SH LIBRARY diff --git a/man/man3/tomo-fail.3 b/man/man3/tomo-fail.3 index ed969cc4..134ee527 100644 --- a/man/man3/tomo-fail.3 +++ b/man/man3/tomo-fail.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH fail 3 2025-05-17 "Tomo man-pages" +.TH fail 3 2025-09-06 "Tomo man-pages" .SH NAME fail \- abort the program .SH LIBRARY diff --git a/man/man3/tomo-getenv.3 b/man/man3/tomo-getenv.3 index e06e35ff..009f1e11 100644 --- a/man/man3/tomo-getenv.3 +++ b/man/man3/tomo-getenv.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH getenv 3 2025-05-17 "Tomo man-pages" +.TH getenv 3 2025-09-06 "Tomo man-pages" .SH NAME getenv \- get an environment variable .SH LIBRARY diff --git a/man/man3/tomo-print.3 b/man/man3/tomo-print.3 index ccb9863e..163385e9 100644 --- a/man/man3/tomo-print.3 +++ b/man/man3/tomo-print.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH print 3 2025-05-17 "Tomo man-pages" +.TH print 3 2025-09-06 "Tomo man-pages" .SH NAME print \- print some text .SH LIBRARY diff --git a/man/man3/tomo-say.3 b/man/man3/tomo-say.3 index 4e9bfeb4..caf88814 100644 --- a/man/man3/tomo-say.3 +++ b/man/man3/tomo-say.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH say 3 2025-05-17 "Tomo man-pages" +.TH say 3 2025-09-06 "Tomo man-pages" .SH NAME say \- print some text .SH LIBRARY diff --git a/man/man3/tomo-setenv.3 b/man/man3/tomo-setenv.3 index a9ed528d..0c22dc4c 100644 --- a/man/man3/tomo-setenv.3 +++ b/man/man3/tomo-setenv.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH setenv 3 2025-05-17 "Tomo man-pages" +.TH setenv 3 2025-09-06 "Tomo man-pages" .SH NAME setenv \- set an environment variable .SH LIBRARY diff --git a/man/man3/tomo-sleep.3 b/man/man3/tomo-sleep.3 index efe73c14..e45e68c0 100644 --- a/man/man3/tomo-sleep.3 +++ b/man/man3/tomo-sleep.3 @@ -2,7 +2,7 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH sleep 3 2025-05-17 "Tomo man-pages" +.TH sleep 3 2025-09-06 "Tomo man-pages" .SH NAME sleep \- wait for an interval .SH LIBRARY diff --git a/src/environment.c b/src/environment.c index b551abf1..35cc8650 100644 --- a/src/environment.c +++ b/src/environment.c @@ -372,7 +372,7 @@ env_t *global_env(bool source_mapping) { {"starts_with", "Text$starts_with", "func(text,prefix:Text, remainder:&Text? = none -> Bool)"}, // {"title", "Text$title", "func(text:Text, language='C' -> Text)"}, // {"to", "Text$to", "func(text:Text, last:Int -> Text)"}, // - {"translate", "Text$translate", "func(text:Text, translations:{Text=Text} -> Text)"}, // + {"translate", "Text$translate", "func(text:Text, translations:{Text:Text} -> Text)"}, // {"trim", "Text$trim", "func(text:Text, to_trim=\" \t\r\n\", left=yes, right=yes -> Text)"}, // {"upper", "Text$upper", "func(text:Text, language='C' -> Text)"}, // {"utf8", "Text$utf8", "func(text:Text -> [Byte])"}, // diff --git a/src/parse/containers.c b/src/parse/containers.c index 73d30ecd..c6362623 100644 --- a/src/parse/containers.c +++ b/src/parse/containers.c @@ -50,7 +50,7 @@ ast_t *parse_table(parse_ctx_t *ctx, const char *pos) { ast_t *key = optional(ctx, &pos, parse_extended_expr); if (!key) break; whitespace(ctx, &pos); - if (!match(&pos, "=")) return NULL; + if (!match(&pos, ":")) return NULL; ast_t *value = expect(ctx, pos - 1, &pos, parse_expr, "I couldn't parse the value for this table entry"); ast_t *entry = NewAST(ctx->file, entry_start, pos, TableEntry, .key = key, .value = value); ast_t *suffixed = parse_comprehension_suffix(ctx, entry); diff --git a/src/parse/types.c b/src/parse/types.c index ffb7d869..987be7a1 100644 --- a/src/parse/types.c +++ b/src/parse/types.c @@ -23,15 +23,14 @@ type_ast_t *parse_table_type(parse_ctx_t *ctx, const char *pos) { pos = key_type->end; whitespace(ctx, &pos); type_ast_t *value_type = NULL; - if (match(&pos, "=")) { + if (match(&pos, ":")) { value_type = expect(ctx, start, &pos, parse_type, "I couldn't parse the rest of this table type"); } else { return NULL; } spaces(&pos); ast_t *default_value = NULL; - if (match(&pos, ";") && match_word(&pos, "default")) { - expect_str(ctx, pos, &pos, "=", "I expected an '=' here"); + if (match(&pos, "=")) { default_value = expect(ctx, start, &pos, parse_extended_expr, "I couldn't parse the default value for this table"); } diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c index 974e3542..65b09f60 100644 --- a/src/stdlib/tables.c +++ b/src/stdlib/tables.c @@ -535,7 +535,7 @@ Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *type) { if (!t) { if (table.value != &Void$info) - return Text$concat(Text("{"), generic_as_text(NULL, false, table.key), Text("="), + return Text$concat(Text("{"), generic_as_text(NULL, false, table.key), Text(":"), generic_as_text(NULL, false, table.value), Text("}")); else return Text$concat(Text("|"), generic_as_text(NULL, false, table.key), Text("|")); } @@ -547,7 +547,7 @@ Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *type) { void *entry = GET_ENTRY(*t, i); text = Text$concat(text, generic_as_text(entry, colorize, table.key)); if (table.value != &Void$info) - text = Text$concat(text, Text("="), generic_as_text(entry + val_off, colorize, table.value)); + text = Text$concat(text, Text(": "), generic_as_text(entry + val_off, colorize, table.value)); } if (t->fallback) { diff --git a/src/types.c b/src/types.c index b0caca1a..024bb688 100644 --- a/src/types.c +++ b/src/types.c @@ -328,7 +328,7 @@ PUREFUNC bool can_promote(type_t *actual, type_t *needed) { return true; // || -> |T| if (actual->tag == TableType && needed->tag == TableType && Match(actual, TableType)->key_type == NULL && Match(actual, TableType)->value_type == NULL) - return true; // {} -> {K=V} + return true; // {} -> {K:V} // Cross-promotion between tables with default values and without if (needed->tag == TableType && actual->tag == TableType) { diff --git a/test/for.tm b/test/for.tm index 75ad2fee..9c329c62 100644 --- a/test/for.tm +++ b/test/for.tm @@ -15,14 +15,14 @@ func labeled_nums(nums:[Int] -> Text) return "EMPTY" return result -func table_str(t:{Text=Text} -> Text) +func table_str(t:{Text:Text} -> Text) str := "" for k,v in t str ++= "$k:$v," else return "EMPTY" return str -func table_key_str(t:{Text=Text} -> Text) +func table_key_str(t:{Text:Text} -> Text) str := "" for k in t str ++= "$k," @@ -40,7 +40,7 @@ func main() >> labeled_nums([]) = "EMPTY" - >> t := {"key1"="value1", "key2"="value2"} + >> t := {"key1":"value1", "key2":"value2"} >> table_str(t) = "key1:value1,key2:value2," >> table_str({}) diff --git a/test/lang.tm b/test/lang.tm index 21b70f96..08fcb87d 100644 --- a/test/lang.tm +++ b/test/lang.tm @@ -2,11 +2,11 @@ lang HTML HEADER := $HTML"<!DOCTYPE HTML>" convert(t:Text->HTML) t = t.translate({ - "&"="&", - "<"="<", - ">"=">", - '"'=""", - "'"="'", + "&": "&", + "<": "<", + ">": ">", + '"': """, + "'": "'", }) return HTML.from_text(t) diff --git a/test/serialization.tm b/test/serialization.tm index 8e1a4a1c..fd1ac743 100644 --- a/test/serialization.tm +++ b/test/serialization.tm @@ -43,9 +43,9 @@ func main() assert roundtrip[] == obj[] do - >> obj := {"A"=10, "B"=20; fallback={"C"=30}} + >> obj := {"A":10, "B":20; fallback={"C":30}} >> bytes := obj.serialized() - >> roundtrip := deserialize(bytes -> {Text=Int}) + >> roundtrip := deserialize(bytes -> {Text:Int}) assert roundtrip == obj assert roundtrip.fallback == obj.fallback diff --git a/test/structs.tm b/test/structs.tm index 40c1b566..c7fba47e 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -66,9 +66,9 @@ func main() = Password("Swordfish") >> "$my_pass" = "Password(...)" - >> users_by_password := {my_pass="User1", Password("xxx")="User2"} + >> users_by_password := {my_pass: "User1", Password("xxx"): "User2"} >> "$users_by_password" - = '{Password(...)="User1", Password(...)="User2"}' + = '{Password(...): "User1", Password(...): "User2"}' >> users_by_password[my_pass]! = "User1" diff --git a/test/tables.tm b/test/tables.tm index 1f4244f9..60cedf4a 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -1,6 +1,6 @@ func main() - >> t := {"one"=1, "two"=2} - = {"one"=1, "two"=2} + >> t := {"one": 1, "two": 2} + = {"one": 1, "two": 2} >> t["one"] = 1? @@ -29,8 +29,8 @@ func main() >> t.values = [1, 2] - >> t2 := {"three"=3; fallback=t} - = {"three"=3; fallback={"one"=1, "two"=2}} + >> t2 := {"three": 3; fallback=t} + = {"three": 3; fallback={"one": 1, "two": 2}} >> t2["one"] = 1? @@ -42,7 +42,7 @@ func main() >> t2.length = 1 >> t2.fallback - = {"one"=1, "two"=2}? + = {"one": 1, "two": 2}? t2_str := "" for k,v in t2 @@ -50,20 +50,20 @@ func main() >> t2_str = "(three=3)" - >> {i=10*i for i in 5} - = {1=10, 2=20, 3=30, 4=40, 5=50} - >> {i=10*i for i in 5 if i mod 2 != 0} - = {1=10, 3=30, 5=50} - >> {x=10*x for x in y if x > 1 for y in [3, 4, 5] if y < 5} - = {2=20, 3=30, 4=40} + >> {i: 10*i for i in 5} + = {1: 10, 2: 20, 3: 30, 4: 40, 5: 50} + >> {i: 10*i for i in 5 if i mod 2 != 0} + = {1: 10, 3: 30, 5: 50} + >> {x: 10*x for x in y if x > 1 for y in [3, 4, 5] if y < 5} + = {2: 20, 3: 30, 4: 40} - >> t3 := @{1=10, 2=20, 3=30} + >> t3 := @{1: 10, 2: 20, 3: 30} >> t3.remove(3) >> t3[] - = {1=10, 2=20} + = {1: 10, 2: 20} do - >> plain := {1=10, 2=20, 3=30} + >> plain := {1: 10, 2: 20, 3: 30} >> plain[2]! = 20 >> plain[2]! @@ -75,34 +75,34 @@ func main() >> plain.has(456) = no - >> fallback := {4=40; fallback=plain} + >> fallback := {4: 40; fallback=plain} >> fallback.has(1) = yes >> fallback[1] or -999 = 10 do - >> t4 := &{"one"= 1} + >> t4 := &{"one": 1} >> t4["one"] = 999 >> t4["two"] = 222 >> t4[] - = {"one"=999, "two"=222} + = {"one": 999, "two": 222} do - assert {1=1, 2=2} == {2=2, 1=1} - assert {1=1, 2=2} != {1=1, 2=999} + assert {1: 1, 2: 2} == {2: 2, 1: 1} + assert {1: 1, 2: 2} != {1: 1, 2: 999} - >> {1=1, 2=2} <> {2=2, 1=1} + >> {1: 1, 2: 2} <> {2: 2, 1: 1} = Int32(0) - >> ints : [{Int=Int}] = [{}, {0=0}, {99=99}, {1=1, 2=2, 3=3}, {1=1, 99=99, 3=3}, {1=1, 2=-99, 3=3}, {1=1, 99=-99, 3=4}].sorted() - = [{}, {0=0}, {1=1, 2=-99, 3=3}, {1=1, 2=2, 3=3}, {1=1, 99=99, 3=3}, {1=1, 99=-99, 3=4}, {99=99}] + >> ints : [{Int:Int}] = [{}, {0: 0}, {99: 99}, {1: 1, 2: 2, 3: 3}, {1: 1, 99: 99, 3: 3}, {1: 1, 2: -99, 3: 3}, {1: 1, 99: -99, 3: 4}].sorted() + = [{}, {0: 0}, {1: 1, 2: -99, 3: 3}, {1: 1, 2: 2, 3: 3}, {1: 1, 99: 99, 3: 3}, {1: 1, 99: -99, 3: 4}, {99: 99}] >> other_ints : [|Int|] = [||, |1|, |2|, |99|, |0, 3|, |1, 2|, |99|].sorted() = [||, |0, 3|, |1|, |1, 2|, |2|, |99|, |99|] do # Default values: - counter := &{"x"=10; default=0} + counter := &{"x": 10; default=0} >> counter["x"] = 10 >> counter["y"] @@ -115,4 +115,4 @@ func main() >> counter["y"] += 1 >> counter >> counter[] - = {"x"=10, "y"=1; default=0} + = {"x": 10, "y": 1; default=0} diff --git a/test/text.tm b/test/text.tm index 266d8c03..4ffea7b6 100644 --- a/test/text.tm +++ b/test/text.tm @@ -203,7 +203,7 @@ func main() >> "Hello".replace("ello", "i") = "Hi" - >> "<tag>".translate({"<"="<", ">"=">"}) + >> "<tag>".translate({"<": "<", ">": ">"}) = "<tag>" >> "Abc".repeat(3) |
