0.10.1 fix edn-out and add documentation on edn-in
This commit is contained in:
parent
809f8f709b
commit
ea7a3e699d
3 changed files with 8 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ More transducers and reducing functions for Clojure(script)!
|
|||
Add this dependency to your project:
|
||||
|
||||
```clj
|
||||
[net.cgrand /xforms "0.10.0"]
|
||||
[net.cgrand /xforms "0.10.1"]
|
||||
```
|
||||
|
||||
```clj
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject net.cgrand/xforms "0.10.0"
|
||||
(defproject net.cgrand/xforms "0.10.1"
|
||||
:description "Extra transducers for Clojure"
|
||||
:url "https://github.com/cgrand/xforms"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
|
|
@ -43,8 +43,11 @@
|
|||
|
||||
(defn edn-in
|
||||
"Returns a reducible view over the provided input.
|
||||
Input is read line by line. Coercion of the input is done by io/reader (and opts are passed to it).
|
||||
Input is automatically closed upon completion or error."
|
||||
Input is read form by form. Coercion of the input is done by io/reader.
|
||||
Input is automatically closed upon completion or error.
|
||||
Unqualified options are passed to both edn/read and io/writer, options qualified by clojure.java.io
|
||||
are only passed (once dequalified) to io/writer, options qualified by clojure.edn are only passed to
|
||||
edn/read"
|
||||
[in & {:as opts}]
|
||||
(let [no-init (Object.)]
|
||||
(reify clojure.lang.IReduce
|
||||
|
|
@ -79,5 +82,5 @@
|
|||
*print-dup* false
|
||||
*print-meta* false
|
||||
*print-readably* true]
|
||||
(println x)
|
||||
(prn x)
|
||||
w)))
|
||||
Loading…
Reference in a new issue