Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
agrid
agrid is an OCaml library for adjustable grids. Adjustable grids are two dimensional arrays whose width/height can be changed by adding or removing row/column at either end (one at a time).
Quickstart
You should depend on agrid then :
let () =
let grid = Agrid.of_list [[1; 2]; [3; 4]] in
let grid = Agrid.snoc_row grid (Flex_array.of_list [5; 6]) in
Agrid.pp Format.pp_print_int Format.std_formatter grid
(* prints:
* 1; 2
* 3; 4
* 5; 6
*)