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.
(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.
(string cell)Prints the given cell as a string cell.
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:
| Function | Cell after reading | Type |
|---|---|---|
Clojure str | "foo" | JVM |
This namespace's string | ""(+ 1 2)"" | Cell |
Prints the given `cell` as a string cell. 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: | Function | Cell after reading | Type | |---------------------------|--------------------|------| | Clojure `str` | `"foo"` | JVM | | This namespace's `string` | `""(+ 1 2)""` | Cell |
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |