package core_extended

  1. Overview
  2. Docs

Header parsing control

type t = [
  1. | `No
  2. | `Yes
  3. | `Require of string list
  4. | `Replace of string list
  5. | `Add of string list
  6. | `Transform of string list -> string list
  7. | `Filter_map of string list -> string option list
]

Control how headers are parsed

  • `No: File has no headers; columns can only be accessed by index.
  • `Yes: File has headers.
  • `Require: File has headers; assert that at least the given headers appear.
  • `Replace: File has headers, which are ignored; the given headers are used instead.
  • `Add: File has no headers. Use the given ones for header access.
  • `Transform: File has headers; each will be transformed with the given function.
  • `Filter_map: similar to `Transform but None headers are ignored.
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
OCaml

Innovation. Community. Security.