specter

Latest version: 1.1.3
idiomancy 2018-09-27T02:26:50.000100Z

is there a version of nil->val that also responds to :com.rpl.specter.impl/NONE? The navigator I'm building is "if element 1is a hash-map, select that. if not, insert a hash-map between element 0 and element 1 and select that"

nathanmarz 2018-09-27T10:59:07.000100Z

@idiomancy that path can be expressed like:

(transform 
  (if-path [1 map?]
    1
    [(before-index 1) (view (constantly {}))]
    )
  transform-fn
  data)

idiomancy 2018-09-27T11:15:24.000100Z

holy crap that works.

idiomancy 2018-09-27T11:15:47.000100Z

man, thats crazy, was landing on like 30 variations of that that didn't work