Hi,
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 :>> ?
Regards
Roger
(defn foo [x]
(println x)
(condp = x
true 1
false 2
)
)
(testing "ternary clause"
(is (= 1
(condp = 25
1 :>> foo
25 :>> foo
42
)
))
)
--
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