module Std:sig..end
Additional functions.
val input_lines : Stdlib.in_channel -> string Enum.tReturns an enumeration over lines of an input channel, as read by the
input_line function.
val input_chars : Stdlib.in_channel -> char Enum.tReturns an enumeration over characters of an input channel.
val input_list : Stdlib.in_channel -> string listReturns the list of lines read from an input channel.
val input_all : Stdlib.in_channel -> stringReturn the whole contents of an input channel as a single string.
val print_bool : bool -> unitPrint a boolean to stdout.
val prerr_bool : bool -> unitPrint a boolean to stderr.
val input_file : ?bin:bool -> string -> stringreturns the data of a given filename.
val output_file : filename:string -> text:string -> unitcreates a filename, write text into it and close it.
val string_of_char : char -> stringcreates a string from a char.
val identity : 'a -> 'athe identity function.
val unique : unit -> intreturns an unique identifier every time it is called.
val dump : 'a -> stringrepresent a runtime value as a string. Since types are lost at compile time, the representation might not match your type. For example, None will be printed 0 since they share the same runtime representation.
val print : 'a -> unitprint the representation of a runtime value on stdout.
See remarks for dump.
val finally : (unit -> unit) -> ('a -> 'b) -> 'a -> 'bfinally fend f x calls f x and then fend() even if f x raised
an exception.