package crdt-ml

  1. Overview
  2. Docs

Grow-Only set type. Supports merging, adding and lookup operations.

include Mergeable
type t

Type of mergeable elements.

val make : unit -> t

Create a new mergeable element.

val merge : t -> t -> t

merge a b will merge the state of a and the one from b to create a new mergeable element.

type elt

Type of the contents of GSet

val add : elt -> t -> t

add el t adds el to t.

val value : t -> elt list

value t gets the raw state of t.

val lookup : elt -> t -> bool

lookup el t returns true if el is in t.

OCaml

Innovation. Community. Security.