1 2 3 4 5 6 7 8 9
export func factorial(n: u64) -> u64 { if n == 0 { return 1; } if n == 1 { return 1; } return n * factorial(n - 1); }