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"
@idiomancy that path can be expressed like:
(transform
(if-path [1 map?]
1
[(before-index 1) (view (constantly {}))]
)
transform-fn
data)
holy crap that works.
man, thats crazy, was landing on like 30 variations of that that didn't work