mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Added _containsKey() and _containsValue()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user