miller/go/regtest/input/ff.mlr
John Kerl b06c449384
Make regression tests invokable from 'go test' (#491)
* incorporate reg-test into "go test" framework
* reg-test -> regtest everywhere
* update .github/workflows/go.yml
2021-04-12 23:00:53 -04:00

9 lines
89 B
Text

func f(n) {
if (n > 1) {
return n*f(n-1)
} else {
return 1
}
}
$y = f($i)