blob: 79a34d76394776c22903969f004eae1529aa5d5f [file] [log] [blame]
def tail(int jjj) {
println jjj
<selection>fact</selection>(jjj)
}
int fact(int n) {
if (n > 0) {
return n * fact(n - 1)
}
return 1
}
-----
def tail(int jjj) {
println jjj
if (jjj > 0) {
return jjj * fact(jjj - 1)
}
return 1
}
int fact(int n) {
if (n > 0) {
return n * fact(n - 1)
}
return 1
}