(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.
(minimize diff)
Return a minimal diff, removing any values that haven't changed.
Return a minimal diff, removing any values that haven't changed.
(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!]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close