Re: clojure.data diff question

2012-01-13 Thread Stephen Compall
On Fri, 2012-01-13 at 09:03 -0800, vitalyper wrote: > Clojure> (diff ["a" "b" "c"] ["c" "d"]) > [["a" "b" "c"] ["c" "d"] nil] > > Looks like the result doesn't match documentation: > "Recursively compares a and b, returning a tuple of > [things-only-in-a things-only-in-b things-in-both]." It does

clojure.data diff question

2012-01-13 Thread vitalyper
Clojure> (use 'clojure.data) nil Clojure> (doc diff) - clojure.data/diff ([a b]) Recursively compares a and b, returning a tuple of [things-only-in-a things-only-in-b things-in-both]. Comparison rules: * For equal a and b, return [nil nil a]. * Maps are subdiffed where key