rubyx/stash/example.vm
2014-05-25 08:43:07 +03:00

11 lines
124 B
Plaintext

function factorial(n) {
if (eq(n, 1)) {
1
} else {
times(n, factorial(minus(n, 1)))
}
}
print(factorial(4))