An expression yielding an arbitrary symbol, used as a function, returns its second argument.
((symbol "whatever") 1 :a) => :a If it has one argument, it returns nil. ((symbol "whatever") 1) => nil It does not accept more than two arguments. ((symbol "whatever") 1 :a \z) => #<ArityException clojure.lang.ArityException: Wrong number of args (3) passed to: Symbol> And it does not accept zero arguments. ((symbol "whatever")) => #<ArityException clojure.lang.ArityException: Wrong number of args (0) passed to: Symbol> What's going on? Note: this is at the REPL in clooj 0.2.7 using Debian/Ubuntu package clojure version 1.1.0+dfsg-1 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
