mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-05-05 16:30:17 +10:00
0c24a7609e
* table.length * table.insert(key,value) * table.hasKey(key) * table.remove(key) There's basically only iteration and sorting left.
19 lines
288 B
Plaintext
19 lines
288 B
Plaintext
|
|
|
|
var table: Table = ["answer":42];
|
|
|
|
print table.hasKey("answer");
|
|
print table.hasKey("question");
|
|
|
|
table.insert("question", "roads");
|
|
|
|
print table.hasKey("answer");
|
|
print table.hasKey("question");
|
|
|
|
table.remove("answer");
|
|
|
|
print table.hasKey("answer");
|
|
print table.hasKey("question");
|
|
|
|
|