package batteries
Install
Dune Dependency
Authors
Maintainers
Sources
md5=d02c4f044e53edca010de46f9139ce00
sha512=99a5afa3604c4cf0c849c670111d617f7f255acb0da043b73ddffdf0e299948bce52516ee31921f269de6088156c4e0a187e0b931543c6819c6b25966b303281
doc/batteries.unthreaded/BatHashtbl/Cap/index.html
Module BatHashtbl.Cap
Source
Capabilities for hashtables.
@documents Hashtbl.Cap
The type of a hashtable.
Constructors
Adopt 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.
Base operations
Searching
Traversing
Conversions
Boilerplate code
Printing
val 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 ->
unit
Override modules
Operations on BatHashtbl.Cap
without exceptions.
Operations on BatHashtbl.Cap
with labels.