I can't find it in the language reference. The standard template doesn't give a clue:
import Foundation
println("Calculating")
// How to set and exit code when I done?
Found it! You should just call:
exit(yourExitCode)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With