Basic Ocaml: How do I compile this?
问题 Just beginning with ocaml and am struggling with the various compilers and tooling. E.g. ocamlopt , ocamlc , ocamlbuild , corebuild and so on. So, how do I compile the following? open Core.Std module Regex = Re2.Regex let ls pattern = let pat = Regex.create_exn pattern in let matcher = Regex.matches pat in Sys.ls_dir "." |> List.filter ~f:matcher |> List.iter ~f:(fun s -> print_string s; print_newline ()) let () = match In_channel.input_line stdin with | None -> print_string "No Input" | Some