diff --git a/ch03-collections-repl-interactions.clj b/ch03-collections-repl-interactions.clj index a666219..682d61d 100644 --- a/ch03-collections-repl-interactions.clj +++ b/ch03-collections-repl-interactions.clj @@ -575,7 +575,7 @@ sm ;----- (defn compare-magnitude [a b] - (- (magnitude a) (magnitude b))) + (< (magnitude a) (magnitude b))) ((comparator compare-magnitude) 10 10000) ;= -1