(********************************************************************) (* OCaml code from the book ``Learn Programming with OCaml'' *) (* See https://usr.lmf.cnrs.fr/lpo/ *) (* *) (* Sylvain Conchon and Jean-Christophe Filliâtre *) (* Copyright 2025 Université Paris-Saclay and CNRS *) (* *) (* Openly licensed via CC BY SA 4.0 *) (* See https://creativecommons.org/licenses/by-sa/4.0/deed.en *) (********************************************************************) (* Program 17 on page 166 Minimal Signature for Resizeable Arrays *) module type ResizeableArray = sig type 'a t val length : 'a t -> int val make : int -> 'a -> 'a t val resize : 'a t -> int -> unit val get : 'a t -> int -> 'a val set : 'a t -> int -> 'a -> unit end
This document was generated using caml2html