module Benl_core:Utility functions.sig..end
This module contains handy functions not specific to Ben.
val with_in_channel : Pervasives.in_channel -> (Pervasives.in_channel -> 'a) -> 'aval with_in_file : string -> (Pervasives.in_channel -> 'a) -> 'aval with_out_file : string -> (Pervasives.out_channel -> 'a) -> 'aval escape_for_shell : string -> string"a" is quoted
into "'a'".val get_rfc2822_date : unit -> stringval list_iteri : (int -> 'a -> 'b) -> 'a list -> unitList.iter, but calls the function with the index of the
current element.val list_rev_mapi : (int -> 'a -> 'b) -> 'a list -> 'b listList.rev_map, but calls the function with the index of
the current element.val simple_split : char -> string -> string listsimple_split sep s splits s using sep as delimiter.val starts_with : string -> string -> boolstarts_with s prefix returns true iff s starts with
prefix.val ends_with : string -> string -> boolends_with s suffix returns true iff s ends with suffix.