mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
16 lines
214 B
Plaintext
16 lines
214 B
Plaintext
import compound;
|
|
|
|
var a = [false, false, false];
|
|
var d = ["one": false, "two": false];
|
|
|
|
fn f(k, v) { return v; }
|
|
|
|
print a.some(f);
|
|
print d.some(f);
|
|
|
|
a[1] = true;
|
|
d["two"] = true;
|
|
|
|
print a.some(f);
|
|
print d.some(f);
|