Re: How does isa? work in multimethod dispatch?

2009-10-22 Thread Shel
Meikel Chouser - Thanks for your help. That does it. I clearly haven't quite grokked the namespace stuff in clojure yet. Better get on that Shel On Oct 21, 1:18 pm, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 21.10.2009 um 20:49 schrieb Shel: (defmulti area (fn [s m] [(:shape

How does isa? work in multimethod dispatch?

2009-10-21 Thread Shel
Hi, I'm having a bit of trouble with the supposed use of isa? as a part of multimethod dispatch. Consider the following example: (defmulti area (fn [s m] [(:shape s) (:measure m)])) (defmethod area[:rectangle :side] [s m] (* (:side m) (:side m))) (defmethod area[:rectangle :sides] [s m] (*