On Wed, Nov 3, 2010 at 12:22 PM, Paul Ingles <p...@forward.co.uk> wrote:

> (defn merge-tree
>  [tree other]
>  (if (not (map? other))
>    tree
>    (merge-with (fn [x y] (merge-tree x y))
>                tree other)))
>

You can get rid of the anonymous function here and just do (merge-with
merge-tree tree other).

That shouldn't be the cause of your problem, though.

-- 
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

Reply via email to