On 07.12.2009, at 07:52, ataggart wrote:

> The functions >, <, >=, <= are only for numbers (though there might be
> a way to shadow them).  You can use the compare function for anything
> implementing the Comparable interface (which should be easier to do
> when using deftype instead of defstruct).

You can also use the equivalent multimethods in  
clojure.contrib.generic.comparison, which can be implemented for any  
type.

Konrad.

-- 
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