I have a vector that I need to count the size of and do a simple math
calculation with.
Say for example:
(defn vect1 [1 2 3 4])

Typing (count vect1) returns the size of 4 that I need. I thought that
I could simply use (count vect1) in an a simple infix expression, ie:
(* (count vect1) 5)    however, I get a class cast exception error
that the java.lang.integer cannot be cast to clojure.lang.ifn. How
would I go about doing this correctly?

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