Run OCaml script with modules

ocaml

  • The OCaml repl (read-evaluate-print-loop).
    Interprets Ocaml commands.
    More information: <https://ocaml.org>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

ocaml {{module1}} {{module2}} {{path/to/file.ml}}

click the source code to copy install ocaml on any operating system with command-not-found.com