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);
}Kalm Script unavailable — showing KalmThe current shell reports session termination when exit is called. Use project mode to choose the application exit code.