Hi. I'm gluer in South Korea. Today I have met a problem. I have solved #82 on emacs-cider environments. but 4clojure says only "You failed the unit test." Can I see additional error message on web browser? My solution is as follows. Thanks for your attention. (fn [y] (let [f (fn f [x s] (let [vs (into [] (map #(into [] %) s)) vx (into [] x) f0 (fn f1 [x] (let [ m (for [y (range (count x))] (remove #(= y %) (range (count x))))] (set (map #(into [] (map x %)) m)))) f1 (fn [a b] (if (= (count a) (count b)) (if (= (apply + (map #(if (= % %2) 0 1) a b)) 1) true false) (if (> (count a)(count b)) (if ((f0 a) b) true false) (if ((f0 b) a) true false))))] (set (map #(apply str %) (filter #(f1 vx %) vs))))) z (fn z [x s r] (let [xf (f (first x) s) xf1 (first xf) xf2 (second xf)] (if (empty? xf) r (list (z xf (disj s xf1) (conj r xf1)) (z (rest xf) (disj s xf2) r))))) re (filter #(= % y) (flatten (map #(flatten (z (vector %) (disj y %) (set (list %)))) y)))] (if (= '() re) false true)))
|
--
You received this message because you are subscribed to the Google Groups "4Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 4clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/4clojure/e69c0e5a-b447-4c97-83b2-b111fcd5d14a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/4clojure/CALwZ%3D2obn6AXt1PxLbC-%3D%3DKzp632%3DRmFDbJ%3D1BgabHEFuEotUw%40mail.gmail.com.