(println-coll str-coll)
Print each string in str-coll
followed by a newline to stdout,
flushing the output buffer after each line.
Print each string in `str-coll` followed by a newline to stdout, flushing the output buffer after each line.
(println-err-coll err-str-coll)
Print each string in err-str-coll
followed by a newline to stderr,
flushing the output buffer after each line.
Print each string in `err-str-coll` followed by a newline to stderr, flushing the output buffer after each line.
(read-json-location location)
Reads in a file from the given location
and parses it into EDN. If
the data being read is an array or sequence, return all the data
as a seq.
Reads in a file from the given `location` and parses it into EDN. If the data being read is an array or sequence, return all the data as a seq.
(write-json data writer & {:keys [key-fn?] :or {key-fn? true}})
Write the contents of data
to writer
, which can be returned by
clojure.java.io/writer
. Applies stringify-edn-key
if key-fn?
is
true
.
Write the contents of `data` to `writer`, which can be returned by `clojure.java.io/writer`. Applies `stringify-edn-key` if `key-fn?` is `true`.
(write-json-file data location & {:keys [key-fn?] :or {key-fn? true}})
Write the contents of data
to the file location
; a file will be
created if it does not exist. Stringifies keyword keys. Applies
stringify-edn-key
if key-fn?
is true
.
Write the contents of `data` to the file `location`; a file will be created if it does not exist. Stringifies keyword keys. Applies `stringify-edn-key` if `key-fn?` is `true`.
(write-json-stderr data & {:keys [key-fn?] :or {key-fn? true}})
Write the contents of data
to standard error. Applies stringify-edn-key
if key-fn?
is true
.
Write the contents of `data` to standard error. Applies `stringify-edn-key` if `key-fn?` is `true`.
(write-json-stdout data & {:keys [key-fn?] :or {key-fn? true}})
Write the contents of data
to standard output. Applies stringify-edn-key
if key-fn?
is true
.
Write the contents of `data` to standard output. Applies `stringify-edn-key` if `key-fn?` is `true`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close