Drax v0.1.0 Drax.OrSet View Source

An or-set based CRDT. Adds take precedence over deletions during merges.

Link to this section Summary

Functions

Adds a new element to the set

Deletes an element from the set

Checks equality between 2 sets. This equality is strict and only returns true if all keys contain the same additions and deletions

Merges a set together. Its possible that after this operation returns elements may be re-added to the set

Link to this section Types

Link to this section Functions

Link to this function

add(set, element, tag \\ Drax.tag()) View Source

Adds a new element to the set

Deletes an element from the set

Checks equality between 2 sets. This equality is strict and only returns true if all keys contain the same additions and deletions.

Merges a set together. Its possible that after this operation returns elements may be re-added to the set.