Liking cljdoc? Tell your friends :D
All platforms.

differ.core

This namespace has two functions: diff and patch.

Diff allows you to compare two datastructures, and returns elements that are different or non-existant. The result of this comparision is represented by a vector containing alterations and removals, respectively.

Once you have a diff like this, you can apply it to any similar data- structure with the patch function. If you only want a diff of alterations, or only removals, you can use the alteration and removal functions in the differ.diff and differ.patch namespaces.

This namespace has two functions: diff and patch.

Diff allows you to compare two datastructures, and returns elements that
are different or non-existant. The result of this comparision is represented
by a vector containing alterations and removals, respectively.

Once you have a diff like this, you can apply it to any similar data-
structure with the patch function. If you only want a diff of alterations,
or only removals, you can use the alteration and removal functions in the
differ.diff and differ.patch namespaces.
raw docstring

diffclj/s

(diff state new-state)

Returns a vector containing the differing, and non-existant elements, of two clojure datastructures.

Returns a vector containing the differing, and non-existant elements, of
two clojure datastructures.
sourceraw docstring

patchclj/s

(patch state [alterations removals])

Applies a diff, as created by the diff function, to any datastructure.

Applies a diff, as created by the diff function, to any datastructure.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close