Created
July 1, 2015 13:13
-
-
Save tdammers/9e7954f75d6e0aed1220 to your computer and use it in GitHub Desktop.
def context -> different varargs seq impl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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