1Ephemeron.Kn.Bucket(3) OCaml library Ephemeron.Kn.Bucket(3)
2
3
4
6 Ephemeron.Kn.Bucket - no description
7
9 Module Ephemeron.Kn.Bucket
10
12 Module Bucket
13 : sig end
14
15
16
17
18
19
20
21 type ('k, 'd) t
22
23
24 A bucket is a mutable "list" of ephemerons.
25
26
27
28 val make : unit -> ('k, 'd) t
29
30 Create a new bucket.
31
32
33
34 val add : ('k, 'd) t -> 'k array -> 'd -> unit
35
36 Add an ephemeron to the bucket.
37
38
39
40 val remove : ('k, 'd) t -> 'k array -> unit
41
42
43 remove b k removes from b the most-recently added ephemeron with keys k
44 , or does nothing if there is no such ephemeron.
45
46
47
48 val find : ('k, 'd) t -> 'k array -> 'd option
49
50 Returns the data of the most-recently added ephemeron with the given
51 keys, or None if there is no such ephemeron.
52
53
54
55 val length : ('k, 'd) t -> int
56
57 Returns an upper bound on the length of the bucket.
58
59
60
61 val clear : ('k, 'd) t -> unit
62
63 Remove all ephemerons from the bucket.
64
65
66
67
68
69OCamldoc 2022-07-22 Ephemeron.Kn.Bucket(3)