On Mar 20, 1:09 am, bgray wrote:
> (defmulti something :os-type)
>
> (defmethod something "Mac OS X" [os x y]
> (+ x y))
Try:
(defmulti something (fn [os x y] (:os-type os)))
- James
--~--~-~--~~~---~--~~
You received this message because you are subscribe
I'm in the process of working on a *nix system library that will be
able to perform tasks based on OS type (Linux, Solaris, AIX, etc.) and
possibly filesystem type in the future. While doing this commands
vary across the operating systems. To get around this I plan on
writing a dispatch function