2 class virtual ['a
, 'b
] oassoc
:
4 inherit ['a
* 'b
] Ocollection.ocollection
6 method virtual assoc
: 'a
-> 'b
7 method virtual delkey
: 'a
-> 'o
9 (* may raise NotFound *)
10 method find
: 'a
-> 'b
11 method find_opt
: 'a
-> 'b
option
13 method haskey
: 'a
-> bool
14 method replkey
: 'a
* 'b
-> 'o
16 (* better to implement it yourself *)
17 method virtual keys
: 'a list
19 method apply
: 'a
-> ('b
-> 'b
) -> 'o
20 method apply_with_default
: 'a
-> ('b
-> 'b
) -> (unit -> 'b
) -> 'o
23 method apply_with_default2
: 'a
-> ('b
-> 'b
) -> (unit -> 'b
) -> unit