(read-string s)
(read-string opts s)
Reads one object from the string s.
Returns nil when s is nil or empty.
To read data structures only, use oakclojure.tools.reader.edn/read-string
Note that the function signature of oakclojure.tools.reader/read-string and
oakclojure.tools.reader.edn/read-string is not the same for eof-handling
Source
(defn
read-string
"Reads one object from the string s.\n Returns nil when s is nil or empty.\n\n To read data structures only, use oakclojure.tools.reader.edn/read-string\n\n Note that the function signature of oakclojure.tools.reader/read-string and\n oakclojure.tools.reader.edn/read-string is not the same for eof-handling"
([s] (read-string {} s))
([opts s]
(when
(and s (not (identical? s "")))
(read opts (string-push-back-reader s)))))