I have a question about apply function.
For examle,create a hash map:
user=> (hash-map :a 1 :b 2)
{:a 1, :b 2}
It works fine,but if i want to use apply:
user=> (apply hash-map :a 1 :b 2)
java.lang.IllegalArgumentException: Don't know how to create ISeq from:
java.lang.Integer (NO_SOURCE_FILE:0)
Why it throw this exception?Is apply could not work with keyword? Any
solution?thanks a lot.
--
庄晓丹 [email protected]
伯岩(花名) [email protected]
Blog: http://www.blogjava.net/killme2008
--
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