On Jun 22, 4:19 pm, Teemu Antti-Poika <
antti...@gmail.com> wrote:
> Hi folks,
>
> I've just discovered Clojure (interesting stuff! Congrats!) and run
> into something I could not figure out on my own. Here's a minimal
> version of the problem:
>
> (defn my-comparator [r1 r2]
> (if (< r1 r2)
> -1
> (if (= r1 r2)
> 0
> 1)))
>
> (sort '(1 6 5 4) my-comparator)
>
> In REPL this results in:
> user=> java.lang.IncompatibleClassChangeError
> java.lang.IncompatibleClassChangeError
>