Why is this count example not working: (count % '(1 2 3))

2013-11-03 Thread Angus
(count % '(1 2 3)) I am getting error: clojure.lang.ArityException: Wrong number of args (2) passed to: core$count -- -- 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

Re: Why is this count example not working: (count % '(1 2 3))

2013-11-03 Thread Joseph Smith
% is used as the implicit arg in the #() (syntactic sugar) anonymous function form. Maybe you want (count '(1 2 3)). --- Joseph Smith j...@uwcreations.com @solussd On Nov 3, 2013, at 3:39 PM, Angus anguscom...@gmail.com wrote: (count % '(1 2 3)) I am getting error:

Re: Why is this count example not working: (count % '(1 2 3))

2013-11-03 Thread Alan Forrester
On 3 Nov 2013, at 21:39, Angus anguscom...@gmail.com wrote: (count % '(1 2 3)) I am getting error: clojure.lang.ArityException: Wrong number of args (2) passed to: core$count http://clojuredocs.org/clojure_core/clojure.core/count Count only takes one argument, a collection, and returns