BatHashtbl.CapCapabilities for hashtables.
@documents Hashtbl.Cap
val create : int -> ('a, 'b, _) tAdopt a regular hashtable as a capability hashtble, allowing to decrease capabilities if necessary.
This operation involves no copying. In other words, in let cap = of_table a in ..., any modification in a will also have effect on cap and reciprocally.
Return a capability hashtable as a regular hashtable.
This operation requires both read and write permissions on the capability table and involves no copying. In other words, in let a = of_table cap in ..., any modification in a will also have effect on cap and reciprocally.
Drop to read-only permissions.
This operation involves no copying.
Drop to write-only permissions.
This operation involves no copying.
val length : ('a, 'b, _) t -> intval is_empty : ('a, 'b, _) t -> boolval add : ('a, 'b, [> `Write ]) t -> 'a -> 'b -> unitval remove : ('a, 'b, [> `Write ]) t -> 'a -> unitval remove_all : ('a, 'b, [> `Write ]) t -> 'a -> unitval replace : ('a, 'b, [> `Write ]) t -> 'a -> 'b -> unitval clear : ('a, 'b, [> `Write ]) t -> unitval find : ('a, 'b, [> `Read ]) t -> 'a -> 'bval find_all : ('a, 'b, [> `Read ]) t -> 'a -> 'b listval find_default : ('a, 'b, [> `Read ]) t -> 'a -> 'b -> 'bval find_option : ('a, 'b, [> `Read ]) t -> 'a -> 'b optionval mem : ('a, 'b, [> `Read ]) t -> 'a -> boolval iter : ('a -> 'b -> unit) -> ('a, 'b, [> `Read ]) t -> unitval fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b, [> `Read ]) t -> 'c -> 'cval map_inplace : ('a -> 'b -> 'b) -> ('a, 'b, [> `Write ]) t -> unitval filter_inplace : ('a -> bool) -> ('key, 'a, [> `Write ]) t -> unitval filteri_inplace : ('key -> 'a -> bool) -> ('key, 'a, [> `Write ]) t -> unitval filter_map_inplace : ('key -> 'a -> 'a option) -> ('key, 'a, [> `Write ]) t -> unitval to_list : ('a, 'b, [> `Read ]) t -> ('a * 'b) listval of_list : ('a * 'b) list -> ('a, 'b, _) tval print : ?first:string -> ?last:string -> ?sep:string -> ?kvsep:string ->
('a BatInnerIO.output -> 'b -> unit) -> ('a BatInnerIO.output -> 'c -> unit) -> 'a BatInnerIO.output -> ('b, 'c, [> `Read ]) t -> unitmodule Exceptionless : sig ... endOperations on BatHashtbl.Cap without exceptions.
module Labels : sig ... endOperations on BatHashtbl.Cap with labels.