Sized.MakeSizedMapThis module implements a sized-map data-structure.
This module has the same interface as Stdlib.Map but with a different performance trade-off:
The cardinal function is much more efficient, but all other functions are a little bit slower. You should use this module if you need to call the cardinal function often. You should stick to Stdlib.Map otherwise.
module Map : Mavryk_error_monad.TzLwtreslib.Map.SAll the types and functions from the underlying Maps are supported.
The functions merge and union are less efficient than TzLwtreslib.Map.S.merge and TzLwtreslib.Map.S.union which should be considered instead, especially in case there are called several times. to_map and of_map can be used for this purpose.
include Mavryk_error_monad.TzLwtreslib.Map.S with type key = Map.keytype key = Map.keyval empty : 'a tval is_empty : 'a t -> boolval cardinal : 'a t -> intval iter_ep :
(key ->
'a ->
(unit, 'error Mavryk_error_monad.TzTrace.trace) Stdlib.result Lwt.t) ->
'a t ->
(unit, 'error Mavryk_error_monad.TzTrace.trace) Stdlib.result Lwt.t