Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (27 sloc) 1.089 kb
fccc685 Initial open-source release
MLstate authored
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
c4d3564 [enhance] db3: use list instead of Map for revisions
Raja authored
18 type key = Revision.t
19 type 'a t
20
21 val empty: 'a t
22 val is_empty : 'a t -> bool
23 val add: key -> 'a -> 'a t -> 'a t
24 val fold: (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
25 val iter : (key -> 'a -> unit) -> 'a t -> unit
26 val rev_iter : (key -> 'a -> unit) -> 'a t -> unit
27 val find : key -> 'a t -> 'a
28 val find_inf : key -> 'a t -> key * 'a
29 val size : 'a t -> int
30 val max : 'a t -> key * 'a
31 val remove_last : 'a t -> 'a t
32 val keys : 'a t -> key list
Something went wrong with that request. Please try again.