-
-
Save tomjack/2225f2e6152d9a052cb1 to your computer and use it in GitHub Desktop.
This file contains 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
(defn pr-with-opts | |
"Prints a sequence of objects using string-print, observing all | |
the options given in opts" | |
[objs opts] | |
(let [first-obj (first objs)] | |
(doseq [obj objs] | |
(when-not (identical? obj first-obj) | |
(string-print " ")) | |
(doseq [string (pr-seq obj opts)] | |
(string-print string))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment