Re: Request for clojure help

2013-07-16 Thread Sean Corfield
On Tue, Jul 16, 2013 at 2:16 PM, Keith Maynard kpmayn...@gmail.com wrote: (defn perms ( [] [[]]) This is not pattern matching in Clojure. It defines an alternative arity version of the function so that (perms) would return [[]]. ([xs] (for [x xs p (perms (removeFirst x xs))] (cons x

Re: Request for clojure help

2013-07-16 Thread Keith Maynard
Wow Awesome Sean, I dropped your code in and it worked immediately It's quite a challenge figuring out the various idioms in all these amazing languages. Thanks for clearing up my attempt at a multimethod :) Regards, Keith On Tuesday, July 16, 2013 6:03:14 PM UTC-4, Sean Corfield

Re: Request for clojure help

2013-07-16 Thread Sean Corfield
NP. Many of us are only too happy to help folks new to Clojure get over these humps and become productive! :) On Tue, Jul 16, 2013 at 6:57 PM, Keith Maynard kpmayn...@gmail.com wrote: Wow Awesome Sean, I dropped your code in and it worked immediately It's quite a challenge figuring out