'a Option_array.t is a compact representation of 'a option array: it avoids
allocating heap objects representing Some x, usually representing them with x
instead. It uses a special representation for None that's guaranteed to never
collide with any representation of Some x.
val empty : _ tval init_some : int ‑> f:(int ‑> 'a) ‑> 'a tval init : int ‑> f:(int ‑> 'a option) ‑> 'a tval length : _ t ‑> intval get : 'a t ‑> int ‑> 'a optionget t i returns the element number i of array t, raising if i is outside the
range 0 to length t - 1.
These can cause arbitrary behavior when used for an out-of-bounds array access.
val unsafe_get : 'a t ‑> int ‑> 'a optionval unsafe_get_some_exn : 'a t ‑> int ‑> 'aval unsafe_is_some : _ t ‑> int ‑> boolval set : 'a t ‑> int ‑> 'a option ‑> unitset t i x modifies array t in place, replacing element number i with x,
raising if i is outside the range 0 to length t - 1.
val set_some : 'a t ‑> int ‑> 'a ‑> unitval set_none : _ t ‑> int ‑> unitUnsafe versions of set*. Can cause arbitrary behaviour when used for an
out-of-bounds array access.
val unsafe_set : 'a t ‑> int ‑> 'a option ‑> unitval unsafe_set_some : 'a t ‑> int ‑> 'a ‑> unitval unsafe_set_none : _ t ‑> int ‑> unitinclude Blit.S1 with type a t := a tval blit : ('a t, 'a t) Base__.Blit_intf.blitval blito : ('a t, 'a t) Base__.Blit_intf.blitoval unsafe_blit : ('a t, 'a t) Base__.Blit_intf.blitval sub : ('a t, 'a t) Base__.Blit_intf.subval subo : ('a t, 'a t) Base__.Blit_intf.subo