package molenc

  1. Overview
  2. Docs
module A = BatArray
module Ht = BatHashtbl
module L = BatList
module Log = Dolog.Log
module S = BatString
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 enforce_f : bool -> (unit -> string) -> unit
val with_out_file : filename -> (out_channel -> 'a) -> 'a
val with_temp_out_file : (filename -> 'a) -> 'a
val with_in_file : filename -> (in_channel -> 'a) -> 'a
val with_in_file2 : string -> string -> (in_channel -> in_channel -> 'a) -> 'a
val with_in_file3 : string -> string -> string -> (in_channel -> in_channel -> in_channel -> 'a) -> 'a
val with_infile_outfile : filename -> filename -> (in_channel -> out_channel -> 'a) -> 'a
val lines_of_file : filename -> string list
val lines_to_file : filename -> string list -> unit
val string_list_to_file : filename -> string list -> unit
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) -> 'a list
val map_on_lines_of_file : filename -> (string -> 'a) -> 'a list
val maybe_map_on_lines_of_file : filename -> (string -> 'a option) -> '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_opt : ('a -> 'b) -> 'a option -> 'b option
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 push : 'a -> 'a list 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 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 rank : float array -> float array
val wilcoxon_rank_sum_to_z : float array -> float array -> float
val cnd : float -> float
val wilcoxon_rank_sum_to_p : float array -> float array -> 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 -> 'a * 'b
val list_uniq_count : 'a list -> ('a * int) list
val time_it : (unit -> 'a) -> float * 'a
val ceili : float -> int
val count_lines_of_file : string -> int
val list_rev_sort : ('a -> 'a -> int) -> 'a list -> 'a list
val list_really_take : int -> 'a list -> 'a list
val array_rand_elt : BatRandom.State.t -> 'a array -> 'a
val prepend_list_with_array : 'a array -> 'a list -> 'a list
val array_without_elt_at : int -> 'a array -> 'a array
val list_really_remove_one : 'a list -> 'a -> 'a list
val array_prepend_to_list : 'a array -> 'a list -> 'a list
val string_array_concat : string -> string array -> string
val erfcc : float -> float
val pearson_a : float array -> float array -> float * float
val spearman_rank : float array -> float array
val spearman_a : float array -> float array -> float * float
val spearman_l : float list -> float list -> float * float
OCaml

Innovation. Community. Security.