blob: 299db609db2a33d981dd1da5a327cd33ca0491e0 (
plain) (
tree)
|
|
import strtabs
var tab = newStringTable(["key1", "val1", "key2", "val2"],
modeStyleInsensitive)
for i in 0..80:
tab["key_" & $i] = "value" & $i
for key, val in pairs(tab):
writeln(stdout, key, ": ", val)
writeln(stdout, "length of table ", $tab.len)
writeln(stdout, `%`("$key1 = $key2; ${PATH}", tab, {useEnvironment}))
|