Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 8f77608a17
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (19 sloc) 0.632 kB
(*s: oassoc.mli *)
class virtual ['a, 'b] oassoc :
object ('o)
inherit ['a * 'b] Ocollection.ocollection
method virtual assoc : 'a -> 'b
method virtual delkey : 'a -> 'o
(* may raise NotFound *)
method find : 'a -> 'b
method find_opt: 'a -> 'b option
method haskey : 'a -> bool
method replkey : 'a * 'b -> 'o
(* better to implement it yourself *)
method virtual keys: 'a list
method apply : 'a -> ('b -> 'b) -> 'o
method apply_with_default : 'a -> ('b -> 'b) -> (unit -> 'b) -> 'o
(* effect version *)
method apply_with_default2 : 'a -> ('b -> 'b) -> (unit -> 'b) -> unit
end
(*e: oassoc.mli *)
Jump to Line
Something went wrong with that request. Please try again.