package tezos-context

  1. Overview
  2. Docs

A mutable set implementation optimised for storing fixed-length strings.

type t
val create : elt_length:int -> initial_capacity:int -> t

create ~elt_length:len ~initial_capacity:n is a set of strings of length len, capable of storing n values without internal reallocation.

val add : t -> string -> unit

add t elt adds elt to t.

val mem : t -> string -> bool

mem t elt is true iff the string elt has been added to t.

OCaml

Innovation. Community. Security.