Fork me on GitHub
#meander
<
2021-12-26
>
Ben Sless15:12:07

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 Sless15:12:06

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

Ben Sless15:12:16

using rewrite, btw

Ben Sless16:12:53

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