meander

Ben Sless 2021-12-26T15:57:07.003400Z

Assuming I have some nested map {:x {:y {:z {& (m/seqable [!ks !vs] ...)}} :foo ?foo} how do I rewrite it to a sequence of maps for all vs and add ?foo to the mix?

Ben Sless 2021-12-26T15:58:06.003900Z

I tried using cata on the rhs but get only a map back and not a vector

Ben Sless 2021-12-26T15:58:16.004100Z

using rewrite, btw

Ben Sless 2021-12-26T16:10:53.005Z

I think I got it, I need to rewrite the RHS to [{:foo ?foo & (m/cata !vs)} ...]