Great feedback, Christophe. I will get back to you with a better implementation.
Regards, BG On Tue, May 29, 2012 at 5:44 PM, Christophe Grand <[email protected]> wrote: > The expansion idea is interesting: expand your selectors to a seq of paths, > redcue with get-in/assoc-in over thme to get the "extract" sense, reduce > with update-in+dissoc to get the exclude. Could yield a nice implementation. > > And now for some nitpicking: > * nowadays I'm reluctant to extend a protocol to interfaces > * apply where reduce should be used (L15) > * what's the puprose of (juxt key val)? (L20) > > Christophe > > On Tue, May 29, 2012 at 12:37 PM, Baishampayan Ghose <[email protected]> > wrote: >> >> Christophe, >> >> > Laurent dragged me in the conversation so here is my take >> > https://gist.github.com/2823916 which strictly follows your proposed >> > "syntax". >> >> I am glad that Laurent dragged you in, I got to see your beautiful >> solution :-) >> >> Here is my (less beautiful) solution, `extract` along with its >> counterpart `exclude` which does the opposite - >> >> https://www.refheap.com/paste/2911 >> >> Comments welcome. >> >> Regards, >> BG >> >> -- >> Baishampayan Ghose >> b.ghose at gmail.com >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to [email protected] >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en > > > > > -- > Professional: http://cgrand.net/ (fr) > On Clojure: http://clj-me.cgrand.net/ (en) > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Baishampayan Ghose b.ghose at gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
