package janestreet_csv

  1. Overview
  2. Docs

Module Csv_tool_lib.Csv_commonSource

Sourcetype t = {
  1. header : string list;
  2. lines : string list list;
}
include Ppx_compare_lib.Comparable.S with type t := t
Sourceval compare : t Base__Ppx_compare_lib.compare
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
type csv := t
Sourceval empty : t
Sourceval print_csv : ?separator:char -> t -> unit
Sourceval load : ?separator:char -> string -> t
Sourceval load_all : ?separator:char -> string list -> t list
Sourcemodule Or_file : sig ... end
Sourceval of_csvlib_csv : string list list -> t

of_csvlib_csv rows assumes the first row is a header. It raises if rows = [].

OCaml

Innovation. Community. Security.