Clojure get nested map value
问题 So I'm used to having a nested array or map of settings in my applications. I tried setting one up in Clojure like this: (def gridSettings {:width 50 :height 50 :ground {:variations 25} :water {:variations 25} }) And I wondered if you know of a good way of retrieving a nested value? I tried writing (:variations (:ground gridSettings)) Which works, but it's backwords and rather cumbersome, especially if I add a few levels. 回答1: That's what get-in does: (get-in gridSettings [:ground :variations