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 <b.gh...@gmail.com>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 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 > -- 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 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