Hi, Am 31.01.2010 um 18:29 schrieb Daniel Werner:
>> ([m ks not-found] >> (if-let [v (reduce get m ks)] >> v >> not-found))) > > If I understand this arity version of get-in correctly, won't the > default also be used if the value stored in the nested data structure > evaluates to something false-y? Yes. It should probably read: (if-let [l (reduce get m (pop ks))] (get l (peek ks) not-found) not-found)) Sincerely Meikel -- 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