Added _containsKey() and _containsValue()

This commit is contained in:
2023-02-10 15:27:39 +00:00
parent 3ba2e420ea
commit 4fe57f9562
3 changed files with 148 additions and 13 deletions

View File

@@ -3,13 +3,6 @@ import compound;
var a = [false, false, false];
var d = ["one": false, "two": false];
fn f(k, v) { return v; }
print d.containsKey("one");
print d.containsKey("three");
print a.some(f);
print d.some(f);
a[1] = true;
d["two"] = true;
print a.some(f);
print d.some(f);