Created
February 13, 2015 15:42
-
-
Save pesterhazy/d1737549272109f79ea9 to your computer and use it in GitHub Desktop.
Debugging aid: show differences between two data structures
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn =* [a b] | |
(if (= a b) | |
true | |
(do | |
(println "No match:" a b) | |
(println "Dfference:" ) | |
(clojure.pprint/pprint (clojure.data/diff a b)) | |
false))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output as describe in the docstring (https://clojuredocs.org/clojure.data/diff) is: