Hi again, Am 09.11.2010 um 00:24 schrieb Meikel Brandmeyer:
> (defn new-gen > [a] > (->> a > (mapcat (juxt transform-left transform-right)) > (remove (fn [n] (some #(= (:val n) (:val %)) (parents n)))) > (distinct-by :val))) Maybe you also want to exchange the distinct-by and remove. Depending on the average number of parents this might save some expensive comparisons. Sincerely Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
