(edn-in in & {:as opts})
Returns a reducible view over the provided input. 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
Returns a reducible view over the provided input. 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
(edn-out w)
(edn-out w x)
(edn-out out xform coll & opts)
1-2 args: reducing function that writes values serialized as EDN to its accumulator (a java.io.Writer). 3+ args: transducing context that writes transformed values to the specified output. The output is coerced to a Writer by passing out and opts to clojure.java.io/writer. The output is automatically closed. Returns the writer.
1-2 args: reducing function that writes values serialized as EDN to its accumulator (a java.io.Writer). 3+ args: transducing context that writes transformed values to the specified output. The output is coerced to a Writer by passing out and opts to clojure.java.io/writer. The output is automatically closed. Returns the writer.
(lines-in in & opts)
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.
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.
(lines-out w)
(lines-out w line)
(lines-out out xform coll & opts)
1-2 args: reducing function that writes values serialized to its accumulator (a java.io.Writer). 3+ args: transducing context that writes transformed values to the specified output. The output is coerced to a Writer by passing out and opts to clojure.java.io/writer. The output is automatically closed. Returns the writer.
1-2 args: reducing function that writes values serialized to its accumulator (a java.io.Writer). 3+ args: transducing context that writes transformed values to the specified output. The output is coerced to a Writer by passing out and opts to clojure.java.io/writer. The output is automatically closed. Returns the writer.
(sh cmd arg1 ... argN & opts)
Transducer or reducible view (in this case assumes empty stdin). Spawns a process (program cmd with optional arguments arg1 ... argN) and pipes data through it. Options may be:
Transducer or reducible view (in this case assumes empty stdin). Spawns a process (program cmd with optional arguments arg1 ... argN) and pipes data through it. Options may be: * :env, an environment variables map, it will be merged with clojure.java.shell/*sh-env* and JVM environment (in decreasing precedence order), * :dir, the current dir (defaults to clojure.java.shell/*sh-dir* or JVM current dir), * :in and :out which are maps with keys :mode (:lines (default), :text or :bytes) and :enc (defaults to "UTF-8"); encoding applies only for modes :lines or :text; shorthands exist: a single keyword is equivalent to {:mode k :enc "UTF-8"}, a single string is equivelent to {:mode :lines, :enc s}. In :bytes mode, values are bytes array. In :lines mode, values are strings representing lines without line delimiters. In :text mode, values are strings.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close