mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Added _every() and _some()
This commit is contained in:
@@ -1,2 +1,15 @@
|
||||
/*
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user