Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- italianverbs.sandbox> (defn foo [a b c]
- {:a a :b b :c c})
- #'italianverbs.sandbox/foo
- italianverbs.sandbox> (foo 1 2 3)
- {:a 1, :b 2, :c 3}
- italianverbs.sandbox> (eval `(foo '(1 2 3)))
- ArityException Wrong number of args (1) passed to: sandbox$foo clojure.lang.AFn.throwArity (AFn.java:437)
- italianverbs.sandbox> (eval `(foo ~@(1 2 3)))
- ClassCastException java.lang.Long cannot be cast to clojure.lang.IFn italianverbs.sandbox/eval6024 (NO_SOURCE_FILE:1)
- italianverbs.sandbox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement