Library
Module
Module type
Parameter
Class
Class type
This table is designed for holding relational data over scalar values (strings, intergers, bools, etc.). It trades type-safety for flexibility, and should be well-suited to dealing with CSV-encoded data.
STATUS: EXPERIMENTAL
module Data : sig ... end
val int : int -> data
val float : float -> data
val bool : bool -> data
val string : string -> data
type row = data array
module Row : sig ... end
val create : ?size:int -> names:string array -> unit -> t
create ~names ()
creates a new table with columns labelled with names
init ~names n f
makes a table with size
rows, each initialized from f
init ~names n row
makes a table with size
rows, all equal to row
val num_rows : t -> int
val num_cols : t -> int
val names : t -> string array
Access the column names. Should not be modified