chambart / ocaml-nullable-array

Nullable-array is a small self-contained library providing an efficient implementation for a type equivalent to `'a option array`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nullable-array

Nullable-array is a small self-contained library providing an efficient implementation for a type equivalent to 'a option array

let a = Nullable_array.make 3 in
Nullable_array.set 1 (Some 4);
assert(Nullable_array.get 0 = None);
assert(Nullable_array.get 1 = Some 4);

Build Status (Travis) Build Status (Appveyor)

About

Nullable-array is a small self-contained library providing an efficient implementation for a type equivalent to `'a option array`

License:MIT License


Languages

Language:OCaml 98.5%Language:Makefile 1.5%