On May 18, 2010, at 23:08 , Meikel Brandmeyer wrote:

> Hi,
...
> It's always a good idea to use things we already have:
...
>   (get (get-in m (butlast ks)) (last ks) not-found)))

Hmm this is slowish, you walk ks twice that way, i think the if-let way is 
better, performance wise. Not sure if it really matters but for really nested 
maps this might make a difference.

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

Reply via email to