Io_helpers.Key_map
Maps from string lists to bytes. No balancing. A key cannot be a prefix or a suffix to another key.
module String_map = Mavryk_base.TzPervasives.String.Map
val encoding :
'a Mavryk_base.TzPervasives.Data_encoding.t ->
'a t Mavryk_base.TzPervasives.Data_encoding.t
val empty : 'a t
val is_empty : 'a t -> bool
val does_not_collide :
String_map.key list ->
'a t ->
[> `Key_does_not_collide | `Key_exists | `Key_has_prefix | `Key_has_suffix ]
val mem : String_map.key list -> 'a t -> bool
val find_opt : String_map.key list -> 'a t -> 'a option
val to_seq : 'a t -> (String_map.key list * 'a) Mavryk_base.TzPervasives.Seq.t
val of_seq : (string list * 'a) Mavryk_base.TzPervasives.Seq.t -> 'a t
val fold_lwt :
(String_map.key list -> 'a -> 'b -> 'b Lwt.t) ->
'a t ->
'b ->
'b Lwt.t
val sample_uniform : 'a t -> (String_map.key list * 'a) option