I was looking for the exact same thing a few months ago. Take a look at this
thread:
http://groups.google.com/group/clojure/browse_thread/thread/a86d8d8c78bcab6b



2011/10/21 Timothy Baldridge <tbaldri...@gmail.com>

> I'm a bit unsure as to the best way to solve this. Assuming I have the
> following tree:
>
> {:parent1
>    {:relationship1
>       {:child1 1}
>       {:child2 2}}
>   {:relationship2
>       {child3 3}}
>   {:_meta}}
>
> I want to get:
>
> [:parent1 :relationship1 :child1]
> [:parent1 :relationship1 :child2]
> [:parent1 :relationship2 :child3]
>
> How do I got about getting this? Notice how I also want to filter out
> all :_meta nodes....what I want is to get a sequence of vectors where
> each vector consists of all the lowest child keys along with the path
> required to get to that key.
>
> Thanks for the help,
>
> Timothy
>
>
> --
> “One of the main causes of the fall of the Roman Empire was
> that–lacking zero–they had no way to indicate successful termination
> of their C programs.”
> (Robert Firth)
>
> --
> 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




-- 
Damien Lepage
http://damienlepage.com

-- 
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

Reply via email to