Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
16
Task/Man-or-boy-test/Sparkling/man-or-boy-test.sparkling
Normal file
16
Task/Man-or-boy-test/Sparkling/man-or-boy-test.sparkling
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
function a(k, x1, x2, x3, x4, x5) {
|
||||
let kk = { "k": k.k };
|
||||
let b = function b() {
|
||||
kk.k--;
|
||||
return a(kk, b, x1, x2, x3, x4);
|
||||
};
|
||||
return kk.k <= 0 ? x4() + x5() : b();
|
||||
}
|
||||
|
||||
function x(n) {
|
||||
return function () {
|
||||
return n;
|
||||
};
|
||||
}
|
||||
|
||||
print(a({ "k": 10 }, x(1), x(-1), x(-1), x(1), x(0)));
|
||||
Loading…
Add table
Add a link
Reference in a new issue