On Jul 6, 5:34 pm, Conrad Taylor <conra...@gmail.com> wrote: > Hi, what's the correct way to define an else clause of a cond form? > For example, > > a) > > (cond > (= total 20) 8.75 > (or (amount > 20) (= country "US") 9.75) > (else 10.0)) > > b) > > (cond > (= total 20) 8.75 > (or (amount > 20) (= country "US") 9.75) > :default 10.0) > > c) > > (cond > (= total 20) 8.75 > (or (amount > 20) (= country "US") 9.75) > 10.0 ) > > d) > > (cond > (= total 20) 8.75 > (or (amount > 20) (= country "US") 9.75) > :else 10.0 )
I'm getting the error message at the line where cond is being defined: Unable to resolve symbol: ? in this context At line 14, I have the following: (cond This is kind of cryptic as it can get being that this is defined by the core language unless I need to import a library/module/form. >From the documentation, I have everything correct but I'm seeing two different errors for 1.2.0 and 1.3.0. -Conrad -- 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