Liking cljdoc? Tell your friends :D

lambdaisland.edn-lines


appendclj

(append writer value)

Append a single form to a writer, followed by a newline.

Append a single form to a writer, followed by a newline.
sourceraw docstring

reader-seqclj

(reader-seq reader)

Given a PushBackReader, return a lazy seq of forms.

Given a PushBackReader, return a lazy seq of forms.
sourceraw docstring

slurpclj

(slurp f)

Read in an ednl file. Returns a lazy sequence of EDN values.

Read in an ednl file. Returns a lazy sequence of EDN values.
sourceraw docstring

spitclj

(spit f contents & [{:keys [append?] :or {append? false} :as options}])

Write out a sequence of EDN values to a file.

Options:

  • :append? append to the file, instead of overwriting it. Defaults to false.
Write out a sequence of EDN values to a file.

Options:
- `:append?` append to the file, instead of overwriting it. Defaults to `false`.
sourceraw docstring

with-appendcljmacro

(with-append [append-binding file] & body)

Open a file in append mode, and add forms to it, using the append function which gets bound in the binding form.

The file is closed at the end of the scope.

(with-append [append "outfile.ednl"] (append [1 2 3]) (append [:x :y :z]))

Open a file in append mode, and add forms to it, using the append function
which gets bound in the binding form.

The file is closed at the end of the scope.

(with-append [append "outfile.ednl"]
  (append [1 2 3])
  (append [:x :y :z]))
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close