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

The result of the match is the value, not true.

For example:

(defn people-richard-likes [p]
   (condp some #{p}
     #{:bill :ben :alex} :>> (fn [x] (println "Favorite person: " x))
     #{:derek :alan}     :>> (fn [x] (println "Lunch buddy: " x))
     (println "Don't like " p)))

user=> (people-richard-likes :alex)
Favorite person:  :alex

user=> (people-richard-likes :derek)
Lunch buddy:  :derek

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