fn factorial(n: int) -> int {
    if n == 0 {
        return 1;
    }
    return n * factorial(n - 1);
}
print(factorial(5)); // 120

Oxido

Oxido is a statically typed interpreted programming language for making CLI tools and scripts.

Install Documentation