module InfiniteArray: sig .. end
This module implements infinite arrays. *
type 'a t
val make : 'a -> 'a t
make x creates an infinite array, where every slot contains x. *
val get : 'a t -> int -> 'a
get a i returns the element contained at offset i in the array a.
Slots are numbered 0 and up. *
val set : 'a t -> int -> 'a -> unit
set a i x sets the element contained at offset i in the array
a to x. Slots are numbered 0 and up. *
val iteri : (int -> 'a -> unit) -> 'a t -> unit
iteri f t computes f i x on every element x at position i
in t.