Skip to content

Repository files navigation

agrid Actions Statuscoverage percentage

Fan art representing the character Rubeus Hagrid from the Harry Potter saga, made with charcoal and watercolours by Mademoiselle Ortie aka Elodie Tihange

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 and flex-array then :

#let grid =Agrid.of_list [[1; 2]; [3; 4]];;
valgrid : intAgrid.t=<abstr>#letgrid=Agrid.snoc_rowgrid (Flex_array.of_list [5; 6]);;
valgrid : intAgrid.t=<abstr>#Format.printf"%a@." (Agrid.ppFormat.pp_print_int) grid;;
1;23;45;6- : unit= ()

For more, have a look at the example folder or at the documentation.

About

Credits

The Hagrid drawing is licensed under the Creative Commons Attribution-Share Alike 4.0 International license. See more details on wikimedia.

About

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).

Topics

Resources

Stars

16 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages