Here is more concrete example

(def s [{"n" {"id" "a"} "d" 2 "children" [{"n" {"id" "c"} "d" 4 "children" 
nil}]} {"n" {"id" "b"} "d" 3 "children" nil}])


I want to find the map that has value "c" for "id". If found, I need to 
return the map {"n" {"id" "c"} "d" 4 "children" nil}

On Wednesday, August 19, 2015 at 5:36:42 PM UTC+2, Gary Verhaegen wrote:
>
> If you want more specific answers, you'll need to describe the 
> structure of your tree. In particular, what is the relationship 
> between your conceptual nodes and your data structures (vectors and 
> maps)? 
>
> On 19 August 2015 at 17:26, Andy- <andre...@gmail.com <javascript:>> 
> wrote: 
> > I have yet to evaluate it myself but this might do help you: 
> > 
> > https://github.com/nathanmarz/specter 
> > 
> > 
> > On Wednesday, August 19, 2015 at 10:18:06 AM UTC-4, Hussein B. wrote: 
> >> 
> >> Hi, 
> >> 
> >> I have transformed JSON response into the equivalent data structure 
> using 
> >> Cheshire library. 
> >> 
> >> The result is a huge nested data structure , mostly vectors and maps. 
> It 
> >> is actually a tree. 
> >> 
> >> How to find a property that is nested deep inside the tree ? For 
> example 
> >> I'm search for the node that has the value zyx for property "uuid". 
> >> 
> >> What I'm supposed to use? Something like zipper or walk? or something 
> >> simpler is available? 
> >> 
> >> Thanks for help. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com 
> <javascript:> 
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com <javascript:> 
> > For more options, visit this group at 
> > http://groups.google.com/group/clojure?hl=en 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Clojure" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to clojure+u...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to