Liking cljdoc? Tell your friends :D

convex.clj

Convert cells to Clojure types.

Sometimes lossy since some cells do not have equivalents in Clojure. For instance, addresses are converted to long. Recursive when it comes to collection.

Mainly useful for a deeper Clojure integration.

Convert cells to Clojure types.

Sometimes lossy since some cells do not have equivalents in Clojure. For instance, addresses are converted to long.
Recursive when it comes to collection.

Mainly useful for a deeper Clojure integration.
raw docstring

addressclj

(address address)

Returns the given address as a JVM long.

Returns the given `address` as a JVM long.
sourceraw docstring

blobclj

(blob blob)

Returns the given blob as a byte array.

Returns the given `blob` as a byte array.
sourceraw docstring

booleanclj

(boolean boolean)

Returns the given boolean cell as a JVM boolean.

Returns the given `boolean` cell as a JVM boolean.
sourceraw docstring

byteclj

(byte cell)

Returns the given byte cell as a JVM long.

Returns the given `byte` cell as a JVM long.
sourceraw docstring

charclj

(char char)

Returns the given char cell as a JVM char.

Returns the given `char` cell as a JVM char.
sourceraw docstring

doubleclj

(double double)

Returns the given double cell as a JVM double.

Returns the given `double` cell as a JVM double.
sourceraw docstring

IClojuresquecljprotocol

Generic function for converting a cell to a Clojure representation.

Relies all other functions from this namespace.

(any (convex.cell/* {:a [:b]}))
Generic function for converting a cell to a Clojure representation.

Relies all other functions from this namespace.

```clojure
(any (convex.cell/* {:a [:b]}))
```

anyclj

(any cell)
sourceraw docstring

keywordclj

(keyword keyword)

Returns the given keyword cell as a Clojure keyword.

Returns the given `keyword` cell as a Clojure keyword.
sourceraw docstring

listclj

(list list)

Returns the given list cell as a Clojure list.

Returns the given `list` cell as a Clojure list.
sourceraw docstring

longclj

(long long)

Returns the given long cell as a JVM long.

Returns the given `long` cell as a JVM long.
sourceraw docstring

mapclj

(map map)

Returns the given map cell (hash map or blob map) as a Clojure map.

Attention, in Clojure maps, sequential types containg the same items are equivalent but not in Convex. Hence, a clash could happen in the rare case where different sequential types are used as keys. For instance, the following is possible in Convex but not in Clojure (would complain about duplicate keys:

{[:a]  :foo
 '(:a) :foo}
Returns the given `map` cell (hash map or blob map) as a Clojure map.

Attention, in Clojure maps, sequential types containg the same items are equivalent but
not in Convex. Hence, a clash could happen in the rare case where different sequential types
are used as keys. For instance, the following is possible in Convex but not in Clojure (would
complain about duplicate keys:

```clojure
{[:a]  :foo
 '(:a) :foo}
```
sourceraw docstring

setclj

(set set)

Returns the given set cell as a Clojure set.

Same comment about sequential types as in map applies here.

Returns the given `set` cell as a Clojure set.

Same comment about sequential types as in [[map]] applies here.
sourceraw docstring

stringclj

(string string)

Returns the given string cell as a JVM string.

Returns the given `string` cell as a JVM string.
sourceraw docstring

symbolclj

(symbol symbol)

Returns the given symbol cell as a Clojure symbol.

Returns the given `symbol` cell as a Clojure symbol.
sourceraw docstring

syntaxclj

(syntax syntax)

Returns the given syntax cell as a Clojure map such as:

KeyValue
:metaClojure map of metadata
:valueValue wrapped, converted as well
Returns the given `syntax` cell as a Clojure map such as:

| Key | Value |
|---|---|
| `:meta` | Clojure map of metadata |
| `:value` | Value wrapped, converted as well |
sourceraw docstring

vectorclj

(vector vector)

Returns the given vector cell as a Clojure vector.

Returns the given `vector` cell as a Clojure vector.
sourceraw docstring

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

× close