package molenc

  1. Overview
  2. Docs
module L = BatList
module Log = Dolog.Log
type filename = string
val tap : ('a -> 'b) -> 'c -> 'd
val fst3 : ('a * 'b * 'c) -> 'd
val create_tmp_filename : unit -> string
val mkfifo : filename -> unit
val enforce : bool -> string -> unit
val enforce_f : bool -> (unit -> string) -> unit
val with_out_file : filename -> (out_channel -> 'a) -> 'a0
val with_temp_out_file : (filename -> 'a) -> 'a0
val with_in_file : filename -> (in_channel -> 'a) -> 'a0
val with_in_file2 : string -> string -> (in_channel -> in_channel -> 'a) -> 'b
val with_in_file3 : string -> string -> string -> (in_channel -> in_channel -> in_channel -> 'a) -> 'b
val with_infile_outfile : filename -> filename -> (in_channel -> out_channel -> 'a) -> 'a0
val lines_of_file : filename -> string list
val read_n_lines : int -> in_channel -> string list
val maybe_extract_comment_header : filename -> string option * string list
val iter_on_lines_of_file : string -> (string -> 'a) -> unit
val iteri_on_lines_of_file : string -> (int -> string -> 'a) -> unit
val map_on_file : filename -> (in_channel -> 'a) -> 'a0 list
val map_on_lines_of_file : filename -> (string -> 'a) -> 'a0 list
val mapi_on_lines_of_file : filename -> (int -> string -> 'a) -> 'a0 list
val skip_blocks : int -> ('a -> 'b) -> 'c -> unit
val read_lines : filename -> string list
val write_lines : string list -> filename -> unit
val output_lines : string list -> filename -> unit
val filter_lines_of_file : filename -> (string -> bool) -> string list
val get_command_output : string -> string
val fork_out_cmd : string -> int
val command_exists : string -> string option
val run_command : string -> unit
val get_env : string -> string option
val find_command : string -> string -> string option
val filename_is_absolute : string -> bool
val relative_to_absolute : string -> string
val remove_string_prefix : string -> string -> string
val string_contains_non_binary_digit : Str.regexp
val string_contains_only_zeros_or_ones : string -> bool
val string_contains_non_digits_non_sep : Str.regexp
val string_is_a_list_of_integers : string -> bool
val may_apply : ('a -> 'b) -> 'c option -> 'd option
val lock_file_for_writing : filename -> bool
val all_pairs : 'a list -> ('a0 * 'a0) list
exception Enough_times
val n_times : int -> (unit -> 'a) -> 'b list * exn
val push : 'a -> 'a0 list ref -> unit
val id : 'a -> 'b
val one_or_more_spaces : Str.regexp
val string_of_floats_array : float array -> string
val enforce_file_extension : string list -> string -> unit
val m_pi : float
val prepend : 'a -> 'b list ref -> unit
val in_bounds : 'a -> 'b -> 'c -> bool
val list_medianf : float list -> float
val string_of_array : ?pre:string -> ?sep:string -> ?suf:string -> ('a -> string) -> 'b array -> string
val save : filename -> 'a -> unit
val restore : filename -> 'a
val is_odd : int -> bool
val is_even : int -> bool
val get_first_line : filename -> string
val cut : char -> int -> string -> string
val get_ncores : unit -> int
val int_of_bool : bool -> int
val bool_of_int : int -> bool
val approx_equal : float -> float -> float -> bool
val is_nan : float -> bool
val faverage : float list -> float
val fmean : float list -> float
val stddev : float list -> float
val fincr_by : float ref -> float -> unit
val int_of_digit_char : char -> int
val char_of_digit : int -> char
val string_of_digit : int -> string
val make_pair : 'a -> 'b -> 'c * 'd
val list_uniq_count : 'a list -> ('b * int) list
val time_it : (unit -> 'a) -> float * 'b
OCaml

Innovation. Community. Security.