view src/rlm/println.clj @ 5:fca75c0e8f40

added stories.clj
author Robert McIntyre <rlm@mit.edu>
date Thu, 01 Mar 2012 05:47:37 -0700
parents 78a630e650d2
children
line wrap: on
line source
1 (ns rlm.println)
4 (def println-repl (bound-fn [& args] (apply println args)))
8 (defn println-terminal [& more]
9 (.println System/out (apply str more)))
12 (defmacro print-to-repl [& forms]
13 `(binding [clojure.core/*out*
14 (java.io.PrintWriter. (clojure.java.io/writer System/out))]
15 ~@forms))