specter

Latest version: 1.1.3
nathanmarz 2018-03-31T04:23:59.000077Z

@spieden this is a more flexible way to approach that:

(def MAP-NODES
  (recursive-path [] p
    (cond-path
      map? (stay-then-continue MAP-VALS p)
      coll? [ALL p]
      )))

(setval [MAP-NODES MAP-VALS nil?] NONE {:foo {:baz nil} :bar :bam})

nathanmarz 2018-03-31T04:24:42.000039Z

MAP-NODES could then be used for other things besides nil filtering

spieden 2018-03-31T04:29:10.000007Z

indeed! thanks