package crdt-ml

  1. Overview
  2. Docs
CRDTs - Conflict-Free Replicated Data Types for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.10.0.tar.gz
sha256=c9be2ec006cd4f65e6a9bddbcedf024f876134afc1ddf4fb689dd0167de25b73
md5=b8337dcb24a3220a3c35bd5bae5c8f12

doc/crdt_immutable/I_GSet/Make/index.html

Module I_GSet.Make

Creates an grow-only set of elements satisfying Immutable_types.Comparable

Parameters

Signature

include Immutable_types.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 = O.t

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.