package core_extended

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Delimited_kernel.WriteSource

Write CSVs & CSV-like delimited formats.

Sourcetype -'a t

Used to describe a way to create a single row of a CSV from a given type.

Sourceval empty : 'a t
Sourceval column : ('a -> string) -> header:string -> 'a t
Sourceval column_m : (module Delimited_kernel__.Write_intf.To_string with type t = 'a) -> header:string -> 'a t
Sourceval column_opt : ?default:string -> ('a -> string) -> header:string -> 'a option t

default is printed in place of None, and if not supplied is the empty string.

Sourceval column_m_opt : ?default:string -> (module Delimited_kernel__.Write_intf.To_string with type t = 'a) -> header:string -> 'a option t
Sourceval optional : ?default:string -> 'a t -> 'a option t

default is used for every column in the case of None.

Sourceval of_list : 'a t list -> 'a t
Sourceval append : 'a t -> 'a t -> 'a t
Sourceval contra_map : 'b t -> f:('a -> 'b) -> 'a t
Sourceval map_headers : 'a t -> f:(string -> string) -> 'a t
Sourceval headers : 'a t -> string list
Sourceval to_columns : 'a t -> 'a -> string list
Sourceval to_string : ?quote:char -> ?sep:char -> ?line_breaks:[ `Unix | `Windows ] -> write_header:bool -> 'a t -> 'a list -> string

Convert a list of 'a to a CSV document in a string.

Sourcemodule Fields_O : sig ... end

Open for prefix operators useful for using with Fields.to_list.

Sourcemodule O : sig ... end
Sourcemodule By_row : sig ... end
Sourcemodule Expert : sig ... end
Sourcemodule Out_channel : sig ... end

Wraps Stdio.Out_channel for writing CSVs one line at a time.

OCaml

Innovation. Community. Security.