diff options
author | Rich Hickey <richhickey@gmail.com> | 2008-10-18 15:53:59 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2008-10-18 15:53:59 +0000 |
commit | db91a80095f37e829f0cc930345bf9f3e08d5ef8 (patch) | |
tree | 1bf0b5be0c9854e0ba8edeccfad9a9a732337570 /src | |
parent | 7c8af7266505c3425712f6b48b5f250114015c20 (diff) |
added read-string
Diffstat (limited to 'src')
-rw-r--r-- | src/clj/clojure/boot.clj | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clj/clojure/boot.clj b/src/clj/clojure/boot.clj index 94000c8f..cb6b4412 100644 --- a/src/clj/clojure/boot.clj +++ b/src/clj/clojure/boot.clj @@ -1697,6 +1697,10 @@ "Reads the next line from stream that is the current value of *in* ." [] (. *in* (readLine))) +(defn read-string + "Reads one object from the string s" + [s] (clojure.lang.RT/readString s)) + (defmacro with-open "Evaluates body in a try expression with name bound to the value of init, and a finally clause that calls (. name (close))." |