2 class virtual ['a
, 'b
] oassoc
:
4 inherit ['a
* 'b
] Ocollection.ocollection
6 method virtual assoc
: 'a
-> 'b
7 method virtual delkey
: 'a
-> 'o
11 method haskey
: 'a
-> bool
12 method replkey
: 'a
* 'b
-> 'o
14 (* better to implement it yourself *)
15 method virtual keys
: 'a list
17 method apply
: 'a
-> ('b
-> 'b
) -> 'o
18 method apply_with_default
: 'a
-> ('b
-> 'b
) -> (unit -> 'b
) -> 'o
21 method apply_with_default2
: 'a
-> ('b
-> 'b
) -> (unit -> 'b
) -> unit