package agrid

All checked builds pass
  1. Overview
  2. Docs
Adjustable grid (two dimensional array) library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.1.tar.gz
sha256=ea82546711a6abdd4edf8bc3052041498cae9c2e5a9e147e29820da4eac4beb4
sha512=f53b2c095e3607e53f92d4e7e13848e9e34bd866837335e7d9341dbb468ac46ffbcd2002d1bf1105e2f6060f57871aef7ce8e65594855447fafb72ad32b076b7

Description

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

Added to opam-repository:

README

agrid Actions Status coverage 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 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
   *)

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.

Dependencies (3)

  1. flex-array >= "1.2"
  2. dune >= "2.7"
  3. ocaml >= "4.05"

Dev Dependencies (2)

  1. odoc with-doc
  2. bisect_ppx with-test & >= "2.6" & dev

Optional Dependencies

None

Used by (1)

  1. atable

Conflicts

None

Build status

Results of building agrid with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.1 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure