Liking cljdoc? Tell your friends :D
Clojure only.

convex.write

Writing, encoding CVX cells various kind of sources.

Binary is big-endian and text is UTF-8.

Also see convex.read for the opposite idea.

Writing, encoding CVX cells various kind of sources.

Binary is big-endian and text is UTF-8.

Also see [[convex.read]] for the opposite idea.
raw docstring

streamclj

(stream writer cell)
(stream writer stringify cell)

Writes the given cell to the given java.io.Writer (parent class of text streams).

By default, standard str is used for stringifying cell. See string for implications.

Writes the given `cell` to the given `java.io.Writer` (parent class of text streams).

By default, standard `str` is used for stringifying `cell`. See [[string]] for implications.
sourceraw docstring

stringclj

(string cell)

Prints the given cell as a string.

While standard str is sufficient for other type of cells, this function ensures that CVX strings are escaped so that reading produces a CVX string as well.

For instance, CVX string "foo" produces the following Java string:

FunctionCell after reading
Clojure str"foo"
This namespace's string""(+ 1 2)""
Prints the given `cell` as a string.

While standard `str` is sufficient for other type of cells, this function ensures that CVX strings are escaped
so that reading produces a CVX string as well.

For instance, CVX string "foo" produces the following Java string:

| Function | Cell after reading |
|---|---|
| Clojure `str` | `"foo"` |
| This namespace's `string` | `""(+ 1 2)""` |
sourceraw docstring

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

× close