Advertisement
Guest User

Untitled

a guest
Apr 29th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. italianverbs.sandbox> (defn foo [a b c]
  2. {:a a :b b :c c})
  3. #'italianverbs.sandbox/foo
  4. italianverbs.sandbox> (foo 1 2 3)
  5. {:a 1, :b 2, :c 3}
  6. italianverbs.sandbox> (eval `(foo '(1 2 3)))
  7. ArityException Wrong number of args (1) passed to: sandbox$foo clojure.lang.AFn.throwArity (AFn.java:437)
  8. italianverbs.sandbox> (eval `(foo ~@(1 2 3)))
  9. ClassCastException java.lang.Long cannot be cast to clojure.lang.IFn italianverbs.sandbox/eval6024 (NO_SOURCE_FILE:1)
  10. italianverbs.sandbox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement