Request for clojure help

2013-07-16 Thread Keith Maynard
(defn removeFirst [x xs] (if (= x (first xs)) (rest xs) (cons (first xs) (removeFirst x (rest xs) (defn perms ( [] [[]]) ([xs] (for [x xs p (perms (removeFirst x xs))] (cons x p)) ) ) Good day, I have been studying a functional approach to the design and analysis of algorithm

Re: Request for clojure help

2013-07-16 Thread Keith Maynard
field wrote: > > On Tue, Jul 16, 2013 at 2:16 PM, Keith Maynard > > > wrote: > > (defn perms > > ( [] [[]]) > > This is not pattern matching in Clojure. It defines an alternative > arity version of the function so that (perms) would return [[]]. >

Re: cannot import namespace reducers

2013-07-23 Thread Keith Maynard
Please spam the list!!! I am sure anyone who receives that message is probably running Mac OS X 10.7.x or later and trying to unravel the mess between Java 6 and Java 7. Please post recommendations. I finally got Eclipse to see the jdl1.7.0_25.jdk now how do I get the OS to replace the Apple i