package janestreet_csv

  1. Overview
  2. Docs
type t =
  1. | Csv of csv
  2. | File of Core.Filename.t
  3. | Stdin
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t -> t -> int
val sexp_of_t : t -> Sexplib0.Sexp.t

Anonymous arg

-file flag

val with_lines : ?separator:char -> t -> header_f:(string list -> string list * 'a) -> f:(header:string list -> state:'a -> string list -> string list) -> unit

with_lines calls header_f on the first line, and passes the return value as the ~header and ~state args to f, which is called on every following line

val with_all : ?separator:char -> t -> f:(csv -> unit) -> unit
OCaml

Innovation. Community. Security.