specter

Latest version: 1.1.3
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

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

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

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

Yup, exactly! Thank you!

👍 1