Fork me on GitHub
#specter
<
2018-03-31
>
nathanmarz04:03:59

@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})

nathanmarz04:03:42

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

spieden04:03:10

indeed! thanks