String Related Dispatching

2009-03-20 Thread bgray
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

Re: String Related Dispatching

2009-03-20 Thread James Reeves
On Mar 20, 1:09 am, bgray graybran...@gmail.com 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