Debian Codegraph @

kernel/parray.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 val max_length : Uint63.t
12
13 type 'a t
14 val length : 'a t -> Uint63.t
15 val length_int : 'a t -> int
16 val get : 'a t -> Uint63.t -> 'a
17 val set : 'a t -> Uint63.t -> 'a -> 'a t
18 val default : 'a t -> 'a
19 val make : Uint63.t -> 'a -> 'a t
20 val init : Uint63.t -> (int -> 'a) -> 'a -> 'a t
21 val copy : 'a t -> 'a t
22
23 val map : ('a -> 'b) -> 'a t -> 'b t
24
25 val to_array : 'a t -> 'a array * 'a (* default *)
26 (* 'a should not be float (no Obj.double_tag) *)
27
28 val of_array : 'a array -> 'a (* default *) -> 'a t
29
30 val unsafe_of_obj : Obj.t -> 'a -> 'a t
31 (* [unsafe_of_obj] injects an untyped mutable array into a persistent one, but
32 does not perform a copy. This means that if the persistent array is mutated,
33 the original one will be too. The array must be a non-flat array. *)
34
35 val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
36 val fold_left2 : ('a -> 'b -> 'c -> 'a) -> 'a -> 'b t -> 'c t -> 'a