package janestreet_csv

  1. Overview
  2. Docs
type t = {
  1. header : string list;
  2. lines : string list list;
}
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
type csv := t
val empty : t
val print_csv : ?separator:char -> t -> unit
val load : ?separator:char -> string -> t
val load_all : ?separator:char -> string list -> t list
module Or_file : sig ... end
val 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.