Fork me on GitHub
#specter
<
2020-02-04
>
richiardiandrea20:02:00

Hi specter folks it's been a while and I am rusty 😄 How do I navigate to all the vectors and makes sure that if they have only one element I unwrap it?

richiardiandrea20:02:27

so from

(xf/one-item-vector->map {:data {:a [1 2 3] :b [{:foo :bar}]}})
to
(xf/one-item-vector->map {:data {:a [1 2 3] :b {:foo :bar}}})

richiardiandrea20:02:13

I think I am kind of missing how to drill down any map of maps

richiardiandrea20:02:20

like in clojure.walk