Fork me on GitHub
#specter
<
2021-08-07
>
stephenmhopper18:08:45

I have a sequence of arbitrary paths that I need to apply using specter/transform to a data structure in succession. Right now, I’m just using reduce and that code looks something like this:

(reduce
  (fn [row path]
    (specter/transform path transform-fn row))
  row
  paths)
Does specter provide anything as an alternative to reduce in this case?

stephenmhopper20:08:02

That’s what I needed. Thank you!