Dear Steve,
I’m new in clojure as well, but if we try to break up your one function into
two, we’d have the following:
(defn update1
Given a two-level nested vector of maps, two keys for each map, and
an update function. Apply the function in the inner map, and returns
nested structure.
I'm trying to figure out if there is a better / more concise / more generic
way to write an update function. The data I have is a vector of maps
containing vectors of maps.
For example:
[{:values [{:y 1 :x 4}{:y 2 :x 7}]}{:values [{:y 5 :x 8}]}]
The goal is to update all the :y values or all