Sorry to use the forum for this, and feel free to insult me, but I've
been searching for the solution to this for a couple of hours.I also
have Stuart Halloway's "Programming Clojure" but the book is not very
useful as a reference for this kind of problems, unless you remember
by heart every example you've met.

I know that I can sum any list of numbers doing

(+ 1 2 3 ...)

But what if my sequence of numbers is already in a list? The statement
below does not work of course...

(+ '(1 2 3) )

and the REPL returns an error that means nothing...

user=> (+ '(1 2 3))
java.lang.ClassCastException (NO_SOURCE_FILE:0)

I am sure that the solution must be very easy, like a reader macro of
some kind. Please help, thanks!

G.

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