Damn! This looks pretty good to me. BTW - Love your blog and tutorial videos. they are incredibly helpful and instructive. I have watched many of them more than once.
I really appreciate them. Thanks Sean!!! Bassel On Apr 21, 12:07 pm, Sean Devlin <francoisdev...@gmail.com> wrote: > Hmmm... I'm not sure destructuring is possible here. Would it be > easier to put an extractor fn in place? > > (defn extract > [arg] > (apply hash-map (map (juxt :tag :content) (:content arg)))) > > Just a thought. I'm sure someone will have a better idea, though. > > On Apr 21, 1:02 pm, Base <basselh...@gmail.com> wrote: > > > > > Hi All - > > > I am having a hard time destructuring a nested data structure. > > > I am starting out with: > > > {:tag :column, > > :attrs nil, > > :content > > [{:tag :name, :attrs nil, :content ["agecat"]} > > {:tag :value, :attrs nil, :content ["nil"]} > > {:tag :threshold, :attrs nil, :content ["0.05"]}]} > > > and am looking to get: > > > {:column "agecat", :value "nil", :threshold "0.05"} > > > I genearlly 'get' the destructuring and it is very cool, but the > > highly nested aspect of this is throwing me off. > > > Any thoughts would be most appreciated. > > > Thanks > > > Bassel > > > -- > > 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 > > athttp://groups.google.com/group/clojure?hl=en > > -- > 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 > athttp://groups.google.com/group/clojure?hl=en -- 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