Liking cljdoc? Tell your friends :D

lambdaisland.deep-diff2


diffclj/s

(diff expected actual)

Compare two values recursively.

The result is a data structure similar to the ones passed in, but with Insertion, Deletion, and Mismatch objects to mark differences.

When two collections are considered to be in the same type class then their contents are compared.

Vectors, sequences, arrays and Java lists are all considered a single type class, as are Clojure and Java maps.

Insertions/Deletions in maps are marked by wrapping the key, even though the change applies to the whole map entry.

Compare two values recursively.

The result is a data structure similar to the ones passed in, but with
Insertion, Deletion, and Mismatch objects to mark differences.

When two collections are considered to be in the same type class then their
contents are compared.

Vectors, sequences, arrays and Java lists are all considered a single type
class, as are Clojure and Java maps.

Insertions/Deletions in maps are marked by wrapping the key, even though the
change applies to the whole map entry.
sourceraw docstring

minimizeclj/s

(minimize diff)

Return a minimal diff, removing any values that haven't changed.

Return a minimal diff, removing any values that haven't changed.
sourceraw docstring

pretty-printclj/s

(pretty-print diff)
(pretty-print diff printer)

Pretty print a diff.

Pretty print a diffed data structure, as obtained from diff. Optionally takes a Puget printer instance, see printer.

Pretty print a diff.

Pretty print a diffed data structure, as obtained from [[diff]]. Optionally
takes a Puget printer instance, see [[printer]].
sourceraw docstring

printerclj/s

(printer)
(printer opts)

Construct a Puget printer instance suitable for printing diffs.

Extra options are passed on to Puget. Extra type handlers can be provides as :extra-handlers (a map from symbol to function), or by using [[lambdaisland.deep-diff.printer/register-print-handler!]]

Construct a Puget printer instance suitable for printing diffs.

Extra options are passed on to Puget. Extra type handlers can be provides as
`:extra-handlers` (a map from symbol to function), or by
using [[lambdaisland.deep-diff.printer/register-print-handler!]]
sourceraw docstring

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

× close