Redact values in a map using clojure.walk/postwalk

Estimated 1 minute readย ยทย Monday, 22 August 2022
(defn redact
   (fn [node]
     (if (and (vector? node) (= :id-number (first node)))
       [:id-number "REDACTED"]
We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic. By clicking 'Accept', you agree to our website's cookie use as described in our Privacy Policy.