I am having a lot of trouble finding a place to mention a possible
clojure bug. Is this it?

I am trying to write a custom comparator, but the comparator never
seems to work. I simplified the comparator below.

user=> (def stringComparator
  (comparator (fn [a b]
                (do
                  (println (str "comparing '" a "' to '" b "'"))
                  (.compareTo a b)))))
#'user/stringComparator
user=> (.compare stringComparator "b" "a")
comparing 'b' to 'a'
-1
user=> (compare "b" "a")
1
user=> (clojure-version )
"1.3.0"


Am I doing something wrong?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to