package print-table

  1. Overview
  2. Docs

Module Print_table.ColumnSource

Sourcetype 'row t

A type for a column extractor, parameterized by the type of the rows. Each 'row value represents an individual row in the table.

Sourceval make : header:string -> ?align:Align.t -> ('a -> Cell.t) -> 'a t

make ~header ?align f declares a new column with header. The alignment defaults to Left. f is the function that should take care and encapsulate the knowledge of how the contents for this column is extracted and created for a given row. It is not immediately called but rather will be called during rendering (and thus if f raises, these exceptions will happen during the rendering part).

OCaml

Innovation. Community. Security.