Added _every() and _some()

This commit is contained in:
2023-02-10 15:00:15 +00:00
parent c81a139c97
commit 3ba2e420ea
4 changed files with 304 additions and 5 deletions

View File

@@ -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);