How to Exit Program in OCaml - Code Snippet

How to perform 'Exit Program' in OCaml.

example.ml
(* Task: Exit Program
(* Language: OCaml

let exit_program() =
    (* Implementation for Exit Program
    let result = ...; (* Initialize variable
    (* TODO: Implement core logic here
    (* Step 1: Prepare data
    (* Step 2: Process Exit Program
    print_endline("Done");
;;
AdSense Slot