module Print:Printing functions using modulesig
..end
Format
?first
, ?sep
, ?last
denotes the formatting instructions (under the form of a format
string)
issued at the beginning, between two elements, and at the end.
The functional argument(s) indicate(s) how to print elements.
val list : ?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) -> Format.formatter -> 'a list -> unit
val array : ?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) -> Format.formatter -> 'a array -> unit
val pair : ?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) ->
(Format.formatter -> 'b -> unit) -> Format.formatter -> 'a * 'b -> unit
val option : ?first:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) -> Format.formatter -> 'a option -> unit
val hash : ?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
?firstbind:(unit, Format.formatter, unit) Pervasives.format ->
?sepbind:(unit, Format.formatter, unit) Pervasives.format ->
?lastbind:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) ->
(Format.formatter -> 'b -> unit) ->
Format.formatter -> ('a, 'b) Hashtbl.t -> unit
val weak : ?first:(unit, Format.formatter, unit) Pervasives.format ->
?sep:(unit, Format.formatter, unit) Pervasives.format ->
?last:(unit, Format.formatter, unit) Pervasives.format ->
(Format.formatter -> 'a -> unit) -> Format.formatter -> 'a Weak.t -> unit
val string_of_print : (Format.formatter -> 'a -> unit) -> 'a -> string
val print_of_string : ('a -> string) -> Format.formatter -> 'a -> unit
val sprintf : ?margin:int -> ('a, Format.formatter, unit, string) Pervasives.format4 -> 'a
sprintf
function than Format.sprintf
, as it takes the same
kind of formatters as other Format.Xprintf
functions.val escaped : ?linebreak:char -> string -> string
linebreak
(default
'\n'
). When used for DOT output, '\l'
and '\r'
produces respectively
left or right justified lines, instead of center justified lines.