Hi thanks for the answer, but I still have a problem understanding why (or when) I want to use ::>>. The thing I don't understand is, that the function after :>> is an unary function with the result of the matching as an argument. But the result of the match will alway be true, otherwise there would be no match. Or have I misunderstood the API description ?
Regards Roger why Am 02.01.2010 um 22:47 schrieb Meikel Brandmeyer: > Hi, > > Am 02.01.2010 um 15:23 schrieb Roger Gilliar: > >> I'm just trying to understand why I would use :>> in a condp expression. The >> followjg code shows how I tried to write a test for condp, but the question >> remains. Why would I want to use :>> ? > > See here: http://groups.google.com/group/clojure/msg/d9ef152e19f5416b > > It always interesting when the return value of the testing function is of > interest. Eg. with some… > > (condp some foo > #{a b} :>> do-stuff-with-a-or-b > #{x y} :>> same-with-x-or-y > do-default) > > So here it is interesting what was actually the match… > > Sincerely > Meikel > > -- > 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 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