Sudan function: Difference between revisions
Corrected JS implementation
(Added Wren) |
(Corrected JS implementation) |
||
Line 63:
*/
function F(n, x, y) {
if (n ===
return x + y;
}
if (y ===
return x;
}
return F(n -
}
</lang>
|