Created
May 9, 2013 00:09
-
-
Save tonetheman/5544627 to your computer and use it in GitHub Desktop.
clojure junk on how to print primitive arrays
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
| ;; how to print primitive arrays | |
| ;; http://stackoverflow.com/questions/8390983/printing-primitive-arrays-in-clojure | |
| (def a (range 10)) | |
| (println (seq a)) | |
| ;; or use java.utils.Arrays | |
| (java.util.Arrays/toString a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment