(assoc-n-with-tail-support a n v)
Assoc with support to place v
at the tail of a
when n
is -1.
Assoc with support to place `v` at the tail of `a` when `n` is -1.
(common-elements & datasets)
Accepts maps of the form
{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}
Returns a vector of the common elements.
Accepts maps of the form {:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>} Returns a vector of the common elements.
(distinct-data & datasets)
Accepts maps of the form
{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}
Returns a vector of the maps with the common elements entries removed.
Accepts maps of the form {:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>} Returns a vector of the maps with the common elements entries removed.
(merged-clock elements & datasets)
Accepts a collection of elements, and two or more datasets of the form
{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}
Returns a vector clock of the relevant nodes, that being the nodes referenced as :author-node in elements.
Accepts a collection of elements, and two or more datasets of the form {:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>} Returns a vector clock of the relevant nodes, that being the nodes referenced as :author-node in elements.
(retain-elements own-data other-data)
Accepts two maps of the form
{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}
Returns a seq of elements to be retained using ORSWOT merge semantics.
Accepts two maps of the form {:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>} Returns a seq of elements to be retained using ORSWOT merge semantics.
The value to use when sorting insertions by index, and the recorded index was -1, indicating the element was inserted at the tail.
The value to use when sorting insertions by index, and the recorded index was -1, indicating the element was inserted at the tail.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close