package core_extended

  1. Overview
  2. Docs

Module Write.Fields_OSource

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

e.g.

  let csv =
    Delimited.Write.Fields_O.(
      Fields.to_list
        ~a_string:!!Fn.id
        ~a_date:!!Date.to_string
        ~mv:!>Long_short.csv)
    |> Delimited.Write.of_list
Sourceval (!!) : ('a -> string) -> ('b, 'a) Core.Field.t -> 'b t

Create a single column from a field of a record.

Sourceval (!>) : 'a t -> ('b, 'a) Core.Field.t -> 'b t

Nest a builder in a field of a record.

Column headers will be prefixed with the name of the field.

OCaml

Innovation. Community. Security.