Fork me on GitHub

Is there a way to implement NONE removal for walker? There are a lot of types of entities in the db and they all use the same flag for signifying something as inactive.


Also, the inactive entities always appear in vectors. Would it make sense to wrap the setval above in a transform that would filter each vector to remove NONE?


@ksmithbaylor i don't think it would be too hard to re-implement walker in terms of recursive-path, ALL, etc.


you could also use [(walker vector?) ALL (pred :inactive)] as your path, and NONE removal will work


actually that would need to be wrapped in recursive-path so it reaches vectors nested inside maps inside vectors


Since I'm fairly new to Clojure, I'm not quite clear on the usage of recursive-path. Here's what I have so far, but it seems to have no effect on the data:

(setval (recursive-path [] p [(walker vector?) ALL (pred :inactive) p]) NONE data)