A simple programming language written in Kotlin
- Add boolean and numeric operations
- Add more libraries and functions
import 'io', 'logic', 'math';
fun factorial(n) {
if (or(equals(n, 0), equals(n, 1))) {
return 1;
} else {
return multiply(n, factorial(minus(n, 1)));
}
}
println(factorial(5));
Output: 120