-
-
Save gf3/c3e80e85e2072962c8d6 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
(with-open | |
[r (java.io.PushbackReader. (java.io.StringReader. "(prn 9)(prn 11)"))] | |
(binding [*read-eval* false] | |
(loop [expr (read r) res []] | |
(try | |
(recur (read r) | |
(conj res expr)) | |
(catch Exception _ res))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment