Table.TABLEThe 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 return None when the key k was already associated with some value. When set to true, the add function returns the table t unmodified if some value was already associated to the key
find k t returns the element associated with the key k in t if found. Returns None otherwise
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:
((Stdlib.Format.formatter -> (key * 'a) -> unit) ->
(key * 'a) ->
unit,
Stdlib.Format.formatter,
unit,
unit,
unit,
(Stdlib.Format.formatter -> (key * 'a) -> unit) ->
(key * 'a) ->
unit)
Stdlib.format6 ->
(Stdlib.Format.formatter -> key -> 'a -> unit) ->
Stdlib.Format.formatter ->
'a t ->
unit