specter

jsabeaudry 2020-09-15T17:24:16.017100Z

@jsabeaudry781 has joined the channel

jsabeaudry 2020-09-15T17:25:15.018100Z

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

phronmophobic 2020-09-15T17:39:12.018500Z

must ? https://github.com/redplanetlabs/specter/wiki/List-of-Navigators#must

jsabeaudry 2020-09-15T18:11:33.019Z

Yup, exactly! Thank you!

👍 1
phronmophobic 2020-09-15T17:41:08.018900Z

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