exit

Choose a process exit code explicitly.

Example.kalm
pub fun main() -> Unit:
    sayLine("Nothing to do")
    exit(0)
Example.kalm
pub fun main() -> Unit {
    sayLine("Nothing to do")
    exit(0)
}
Example.java
void main() {
    System.out.println("Nothing to do");
    System.exit(0);
}

Learn more.