...Clojure(Script) diff and patch implementations for vector...
For a JavaArrayListhere's a corresponding snippet: (patch(fn[l index item] (.addAlll index item) l) (fn[l index n] (dotimes[_ n] (.removel index)) l) mutable-list diff-result) For JavaHashMapthis looks like this Performance for vector based diff ...