specter 2020-09-15

@jsabeaudry781 has joined the channel

Which predicate to use to only transform if the key is present? for example (transform [:a ?] inc {:b 2})

Yup, exactly! Thank you!

👍 1

> (spec/transform [spec/ALL (spec/must :a)] inc [{:b 2}
                                                 {:a 2}])
[{:b 2} {:a 3}]