Module Storage_functors.Make_data_set_storage

Create storage for a compound type.

Parameters

module C : Raw_context.T
module I : INDEX

Signature

type t = C.t
type context = t
type elt = I.t

The type of elements.

Tells if an elt is a member of the set

Adds an elt as a member of the set

Removes an elt from the set ; does nothing if not a member

Returns the elements of the set, deserialized in a list in no particular order.

val fold : context -> order:[ `Sorted | `Undefined ] -> init:'a -> f:(elt -> 'a -> 'a Mavryk_protocol_environment_alpha.Lwt.t) -> 'a Mavryk_protocol_environment_alpha.Lwt.t

Iterates over the elements of the set.

Removes all elements in the set