Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created July 2, 2011 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerick/1061456 to your computer and use it in GitHub Desktop.
Save cemerick/1061456 to your computer and use it in GitHub Desktop.
=> ((proxy [clojure.lang.RestFn] []
(getRequiredArity [] 2)
(doInvoke [a b rest]
(println a b rest))))
#<ArityException clojure.lang.ArityException: Wrong number of args (0) passed to: RestFn$0>
=> ((proxy [clojure.lang.RestFn] []
(getRequiredArity [] 2)
(doInvoke [a b rest]
(println a b rest))) 4 5)
4 5 nil
nil
=> ((proxy [clojure.lang.RestFn] []
(getRequiredArity [] 2)
(doInvoke [a b rest]
(println a b rest))) 4 5 6 7 8)
4 5 (6 7 8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment