specter

Latest version: 1.1.3
oskarkv 2019-07-23T13:55:14.002900Z

I want to make a function that is kind of like merge-with, but recursive, i.e. if I call this function, let's call it f, like

(f + {:a {:b 1 :c 2} :b {:d 4 :e 5}} {:a {:b 3 :c 3} :b {:d 5 :e 5}})
I want the output {:a {:b 4 :c 5} :b {:d 9 :e 10}} Can specter help with that? I don't see how, but it's very possible I'm wrong.

oskarkv 2019-07-23T14:22:52.003700Z

It was not too hard to write without specter, so I doubt specter will help much either way 😛

oskarkv 2019-07-23T15:13:43.004600Z

It would be cool if transform could take several structures, like map does, and apply the function to all the elements of all the structures.

oskarkv 2019-07-23T15:17:39.004900Z

Then my function would be trivial with specter 😛