replikativ.crdt.merging-ormap.core

downstream

(downstream {:keys [adds removals merge-code], :as or-map} {op-adds :adds, op-removals :removals, op-merge-code :merge-code, :as op})

merge-map

new-merging-ormap

(new-merging-ormap merge-code merge-fn)
Create a new map. You can provide an immutable(!) merge
function code and function to resolve conflicts.

or-assoc

(or-assoc ormap key val author)(or-assoc ormap key uid val author)
Assoc element in the map. If the element exists, it will be merged
with the value due to the merge function of this ormap.

or-dissoc

(or-dissoc ormap key author)(or-dissoc ormap key uids author)
Dissoc element in the map.

or-get

(or-get ormap key)