Hi,

On 19 Nov., 06:53, samppi <[EMAIL PROTECTED]> wrote:
> Yes, but I meant creating methods rather than regular functions, in a
> lexical scope. Is it possible to create methods using fn?

(ns foo)

(defmulti bar ...)

(ns foo.test)

(defmethod foo/bar ...)

One can also use the MultiFn Java methods directly, although
I don't know, in how far this is allowed.

(.addMethod foo/bar :MyDispatch (fn [x] ....))

Hope this helps.

Sincerely
Meikel


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to