Fork me on GitHub
#specter
<
2017-01-13
>
qqq04:01:57

I'm looking for "closest to leaf" nodes that: (1) have a :node filed, (2) have an empty :children field how do I do this?

qqq04:01:10

I think it's something dealing with walk, but I don't knowhow to "force to the leafs"

qqq04:01:51

{:node {:name "tex" :key :tex}
   :children
   [{:node {:name "glyph" :key :glpyh}}
    {:node {:name "resize" :key :resize}}
    {:node {:name "frac" :key :frac}}]}
^^ something like this, but it's a deep . / big tree, and I want the 'glph/resize/frac nodes

qqq05:01:28

does specter allow 'recursive selectors' without using walk?

qqq05:01:39

I want something that says :stay -- and then process :children ALL, recursively

qqq05:01:33

specter's ALL is only "process one level"; is there a recursive-all which processes all subtrees?

qqq11:01:43

@nathanmarz : is there any version of specter that runs on java 7? I need to deploy on GAE and spcter appears to reqauire some jav a8 feature

nathanmarz14:01:13

@qqq that's easy with recursive-path

nathanmarz14:01:28

specter should work fine on java 7, are you running into an issue?