Delimited_kernel.WriteWrite CSVs & CSV-like delimited formats.
module type S = sig ... endval empty : 'a tval column : ('a -> string) -> header:string -> 'a tval column_m :
(module Delimited_kernel__.Write_intf.To_string with type t = 'a) ->
header:string ->
'a tval column_opt :
?default:string ->
('a -> string) ->
header:string ->
'a option tdefault is printed in place of None, and if not supplied is the empty string.
val column_m_opt :
?default:string ->
(module Delimited_kernel__.Write_intf.To_string with type t = 'a) ->
header:string ->
'a option tdefault is used for every column in the case of None.
val headers : 'a t -> string listval to_columns : 'a t -> 'a -> string listval header_line : ?quote:char -> ?sep:char -> 'a t -> stringval line : ?quote:char -> ?sep:char -> 'a t -> 'a -> stringval to_string :
?quote:char ->
?sep:char ->
?line_breaks:[ `Unix | `Windows ] ->
write_header:bool ->
'a t ->
'a list ->
stringConvert a list of 'a to a CSV document in a string.
module Fields_O : sig ... endOpen for prefix operators useful for using with Fields.to_list.
module O : sig ... endmodule By_row : sig ... endmodule Expert : sig ... endmodule Out_channel : sig ... endWraps Stdio.Out_channel for writing CSVs one line at a time.
val save :
?quote:char ->
?sep:char ->
?line_breaks:[ `Unix | `Windows ] ->
write_header:bool ->
'a t ->
Core.Filename.t ->
'a list ->
unit