I believe (d) is considered the idiomatic way*. Btw, I think the second
case may not be written correctly; if the intended logic is that 9.75 should
be returned when either amount > 20 or country = "US", the code should look
something like this:
(cond (= total 20) 8.75
(or (> amount 20) (= country "US")) 9.75
:else 10.0)
*See: http://dev.clojure.org/display/design/Library+Coding+Standards
--
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