package crdt-ml
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
CRDTs - Conflict-Free Replicated Data Types for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.10.0.tar.gz
sha256=c9be2ec006cd4f65e6a9bddbcedf024f876134afc1ddf4fb689dd0167de25b73
md5=b8337dcb24a3220a3c35bd5bae5c8f12
doc/crdt_mutable/M_GCounter/index.html
Module M_GCounter
Increment-only counters.
Conceptually the same as a M_IntVector. The only difference is that Mutable_types.IVector.query t returns the sum of all the elements in the vector.
An Increment-only counter is a Mutable_types.IVector with type elt = int
include Mutable_types.IVector with type elt = int
include Mutable_types.Mergeable
val make : unit -> tCreate a new mergeable element.
val make_in_range : int -> tmake_in_range n creates a new IVector of size ranging from 0 to n. being n greater than 0 and smaller than 2^30.
When merging two CRDTs of different sizes, the smaller one grows and pads the remaining space with zeros.
val incr : t -> unitincr t increments the position associated with the numsite of t. See M_IntVector for more information on numsites.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>