Formerly maca/crdt-replicated-graph. Search finds this package by either name.
This module implements types and functions to build, find, get values from, and compare nodes
Return the value of a node
value (node (Just 'a') [0, 1]) == Just 'a'
value (tombstone [0, 1]) == NothingReturn a Node at a path
Build a node
timestamp (node (Just 'a') [0, 1]) == 1
path (node (Just 'a') [0, 1]) == [0, 1]
value (node (Just 'a') [0, 1]) == Just 'a'Build a tombstone providing timestamp and path
timestamp (tombstone [0, 1]) == 1
path (tombstone [0, 1]) == [0, 1]
value (tombstone [0, 1]) == NothingUpdate a Node's children
Node can be either a branch or leaf
Nodewith optional data or aTombstonerepresenting a removed Node