Debian Codegraph @

clib/neList.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 (** Non-empty lists *)
12 type +'a t
13
14 val head : 'a t -> 'a
15
16 val tail : 'a t -> 'a t option
17
18 val singleton : 'a -> 'a t
19
20 val iter : ('a -> unit) -> 'a t -> unit
21
22 val map : ('a -> 'b) -> 'a t -> 'b t
23
24 val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
25
26 val map_head : ('a -> 'a) -> 'a t -> 'a t
27
28 val push : 'a -> 'a t option -> 'a t
29
30 val to_list : 'a t -> 'a list
31
32 (** May raise Invalid_argument *)
33 val of_list : 'a list -> 'a t
34
35 val repr : 'a t -> 'a * 'a list
36
37 val of_repr : 'a * 'a list -> 'a t