package batteries
Install
Dune Dependency
Authors
Maintainers
Sources
md5=ea26b5c72e6731e59d856626049cca4d
sha512=55975b62c26f6db77433a3ac31f97af609fc6789bb62ac38b267249c78fd44ff37fe81901f1cf560857b9493a6046dd37b0d1c0234c66bd59e52843aac3ce6cb
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.