specter

stephenmhopper 2021-08-07T18:01:45.002300Z

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?

nathanmarz 2021-08-07T23:45:47.002600Z

@stephenmhopper check out multi-path

stephenmhopper 2021-08-08T20:03:02.002700Z

That’s what I needed. Thank you!