Ended up with the following.... wondering if loop/recur is possible in this case?
(defn groupSum [a x] (cond (= (count a) 0) false (= (first a) x) true (> (first a) x) (if (> (count a) 1) (groupSum (rest a) x) false) :else (or (groupSum (rest a) (- x (first a))) (groupSum (rest a) x)))) -- 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 Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en