~ubuntu-branches/ubuntu/lucid/camomile/lucid

« back to all changes in this revision

Viewing changes to internal/iMap.mli

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Le Gall
  • Date: 2005-12-03 01:18:55 UTC
  • Revision ID: james.westby@ubuntu.com-20051203011855-qzvwlld1xyqnl62t
Tags: upstream-0.6.3
ImportĀ upstreamĀ versionĀ 0.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* $Id: iMap.mli,v 1.3 2003/06/18 15:11:07 yori Exp $ *)
 
2
(* Copyright 2003 Yamagata Yoriyuki. distributed with LGPL *)
 
3
 
 
4
type +'a t = (int * int * 'a) AvlTree.tree
 
5
 
 
6
type key = int
 
7
 
 
8
val empty : 'a t
 
9
 
 
10
val is_empty : 'a t -> bool
 
11
    
 
12
val add : ?eq:('a -> 'a -> bool) -> int -> 'a -> 'a t -> 'a t
 
13
 
 
14
val add_range : ?eq:('a -> 'a -> bool) -> int -> int -> 'a -> 'a t -> 'a t
 
15
 
 
16
val find : int -> 'a t -> 'a
 
17
 
 
18
val remove : int -> 'a t -> 'a t
 
19
 
 
20
val remove_range : int -> int -> 'a t -> 'a t
 
21
 
 
22
val from : int -> 'a t -> 'a t
 
23
 
 
24
val after : int -> 'a t -> 'a t
 
25
 
 
26
val until : int -> 'a t -> 'a t
 
27
 
 
28
val before : int -> 'a t -> 'a t
 
29
 
 
30
val mem : int -> 'a t -> bool
 
31
 
 
32
val iter : (int -> 'a -> unit) -> 'a t -> unit
 
33
 
 
34
val iter_range : (int -> int -> 'a -> unit) -> 'a t -> unit
 
35
 
 
36
val map : ?eq:('b -> 'b -> bool) -> ('a -> 'b) -> 'a t -> 'b t
 
37
 
 
38
val mapi : ?eq:('b -> 'b -> bool) -> (int -> 'a -> 'b) -> 'a t -> 'b t
 
39
    
 
40
val fold : (int -> 'b -> 'a -> 'a) -> 'b t -> 'a -> 'a
 
41
 
 
42
val fold_range : (int -> int -> 'b -> 'a -> 'a) -> 'b t -> 'a -> 'a
 
43
 
 
44
val set_to_map : ISet.t -> 'a -> 'a t
 
45
 
 
46
val domain : 'a t -> ISet.t
 
47
 
 
48
val map_to_set : ('a -> bool) -> 'a t -> ISet.t