package molenc

  1. Overview
  2. Docs
module L = BatList
type filename = string
val tap : ('a -> 'b) -> 'a -> 'a
val fst3 : ('a * 'b * 'c) -> 'a
val create_tmp_filename : unit -> string
val mkfifo : filename -> unit
val enforce : bool -> string -> unit
val with_out_file : filename -> (Stdlib.out_channel -> 'a) -> 'a
val with_temp_out_file : (filename -> 'a) -> 'a
val with_in_file : filename -> (Stdlib.in_channel -> 'a) -> 'a
val with_in_file2 : string -> string -> (Stdlib.in_channel -> Stdlib.in_channel -> 'a) -> 'a
val with_in_file3 : string -> string -> string -> (Stdlib.in_channel -> Stdlib.in_channel -> Stdlib.in_channel -> 'a) -> 'a
val with_infile_outfile : filename -> filename -> (Stdlib.in_channel -> Stdlib.out_channel -> 'a) -> 'a
val lines_of_file : filename -> string list
val read_n_lines : int -> Stdlib.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 -> (Stdlib.in_channel -> 'a) -> 'a list
val map_on_lines_of_file : filename -> (string -> 'a) -> 'a list
val mapi_on_lines_of_file : filename -> (int -> string -> 'a) -> 'a list
val skip_blocks : int -> ('a -> 'b) -> 'a -> 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 -> unit) -> 'a option -> unit
val lock_file_for_writing : filename -> bool
val all_pairs : 'a list -> ('a * 'a) list
exception Enough_times
val n_times : int -> (unit -> 'a) -> 'a list * exn
val wall_clock_time : (unit -> 'a) -> float * 'a
val push : 'a -> 'a list Stdlib.ref -> unit
val id : 'a -> 'a
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 -> 'a list Stdlib.ref -> unit
val in_bounds : 'a -> 'a -> 'a -> bool
val list_medianf : float list -> float
val string_of_array : ?pre:string -> ?sep:string -> ?suf:string -> ('a -> string) -> 'a 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 Stdlib.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 -> 'a * 'b
val list_uniq_count : 'a list -> ('a * int) list
OCaml

Innovation. Community. Security.