(update-in {:foo [{:bar ["a"], :baz ["b" "c" "d"]}]} [:foo 0 :baz 1] clojure.string/capitalize) ;; => {:foo [{:bar ["a"], :baz ["b" "C" "d"]}]}
If you're processing a tree-like structure via recursion (e.g. type-checking an AST implemented with persistent immutable structures in a compiler) it's no longer easy.
If you're processing a tree-like structure via recursion (e.g. type-checking an AST implemented with persistent immutable structures in a compiler) it's no longer easy.