On 12 September 2011 15:49, Christina Conway <ccon...@annadaletech.com> wrote: > user=> (defn foo [a] "") > #'user/foo > user=> (defn foo->foo2 [a b] "") > #'user/foo->foo2 > user=> (foo (foo->foo2 "a")) > java.lang.IllegalArgumentException: Wrong number of args (1) passed to: > user$foo (NO_SOURCE_FILE:0) > > This example illustrates the problem. The exception indicates that the foo > function has the wrong number of arguments. > But it has one argument which is correct. It is actually the foo->foo2 > function which should have two arguments but has one. > > I am using clojure 1.2.
I can confirm this using Clojure 1.2.1. Even more simple than the above: user=> (defn foo->foo2 [a b] "") #'user/foo->foo2 user=> (foo->foo2 1) java.lang.IllegalArgumentException: Wrong number of args (1) passed to: user$foo (NO_SOURCE_FILE:0) -- Michael Wood <esiot...@gmail.com> -- 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