module Labels:Operations onsig
..end
Hashtbl
with labels.
This module overrides a number of functions of Hashtbl
by
functions in which some arguments require labels. These labels are
there to improve readability and safety and to let you change the
order of arguments to functions. In every case, the behavior of the
function is identical to that of the corresponding function of Hashtbl
.
val add : 'a BatHashtbl.S.t -> key:BatHashtbl.S.key -> data:'a -> unit
val replace : 'a BatHashtbl.S.t -> key:BatHashtbl.S.key -> data:'a -> unit
val iter : f:(key:BatHashtbl.S.key -> data:'a -> unit) -> 'a BatHashtbl.S.t -> unit
val map : f:(key:BatHashtbl.S.key -> data:'a -> 'b) ->
'a BatHashtbl.S.t -> 'b BatHashtbl.S.t
val filter : f:('a -> bool) -> 'a BatHashtbl.S.t -> 'a BatHashtbl.S.t
val filteri : f:(key:BatHashtbl.S.key -> data:'a -> bool) ->
'a BatHashtbl.S.t -> 'a BatHashtbl.S.t
val filter_map : f:(key:BatHashtbl.S.key -> data:'a -> 'b option) ->
'a BatHashtbl.S.t -> 'b BatHashtbl.S.t
val fold : f:(key:BatHashtbl.S.key -> data:'a -> 'b -> 'b) ->
'a BatHashtbl.S.t -> init:'b -> 'b