package acgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=5d380a947658fb1201895cb4cb449b1f60f54914c563e85181d628a89f045c1dd7b5b2226bb7865dd090f87caa9187e0ea6c7a4ee3dc3dda340d404c4e76c7c2
doc/acgtk.utilsLib/UtilsLib/Table/module-type-TABLE/index.html
Module type Table.TABLESource
The signature module for tables
val empty : 'a tempty returns the empty table
add k v t modifies the table t to add the element v at key k. The optional value overwrite is set to false by default. When set to false, the add function raises an exception Conflict when the key k was already associated with some value. When set to true, the add function does not raise Conflict if some value was already associated to the key
find k t returns the element associated with the key k in t. Raises Not_found if no such element exists
fold f a t returns f kn vn (f kn-1 vn-1 (...(f k1 v1 a) ...)) where the ki and vi are the associated values in t. The elements are listed in order wrt. to the key
fold f a t returns f kn vn (f kn-1 vn-1 (...(f k1 v1 a) ...)) where the ki and vi are the associated values in t. The elements are listed in order wrt. to the key
val pp :
?sep:
((Format.formatter -> (key * 'a) -> unit) ->
(key * 'a) ->
unit,
Format.formatter,
unit,
unit,
unit,
(Format.formatter -> (key * 'a) -> unit) ->
(key * 'a) ->
unit)
format6 ->
(Format.formatter -> key -> 'a -> unit) ->
Format.formatter ->
'a t ->
unit