Skip to content

Instantly share code, notes, and snippets.

@tdammers
Created July 1, 2015 13:13
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 tdammers/9e7954f75d6e0aed1220 to your computer and use it in GitHub Desktop.
Save tdammers/9e7954f75d6e0aed1220 to your computer and use it in GitHub Desktop.
def context -> different varargs seq impl
user=> (defn foo [& args] (println (class args)))
#'user/foo
user=> (foo 1 2 3)
clojure.lang.ArraySeq
nil
user=> (def bar (foo 1 2 3))
clojure.lang.PersistentVector$ChunkedSeq
#'user/bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment