A simple programming language written in Kotlin
Add boolean and numeric operations- Add more libraries and functions
- Implement EQUALS operation for different types
- Implement lists
- Add more tests
import 'io', 'logic';
fun factorial(n) {
if (equals(n, 0) || equals(n, 1)) {
return 1;
} else {
return n * factorial(n - 1);
}
}
println(factorial(5));
Output: 120.0