Quick helpers built on top of convex.cvm/eval
.
Systematically forks the used context before any operation so that it remains intact.
Notably useful when writing tests.
Quick helpers built on top of [[convex.cvm/eval]]. Systematically forks the used context before any operation so that it remains intact. Notably useful when writing tests.
(ctx ctx cell)
Evaluates the given cell
and returns ctx
.
Evaluates the given `cell` and returns `ctx`.
(exception ctx cell)
Like ctx
but returns the current exception or nil if there is none.
Like [[ctx]] but returns the current exception or nil if there is none.
(exception-code ctx cell)
Shortcut on top of exception
. Returns the code of the exception associated with ctx
or
nil if no exception occured.
Shortcut on top of [[exception]]. Returns the code of the exception associated with `ctx` or nil if no exception occured.
(result ctx cell)
Like ctx
but returns the result.
Like [[ctx]] but returns the result.
(true? ctx cell)
Shortcut on top of result
. Returns true if the result is CVX true.
Notably useful for test assertions.
Shortcut on top of [[result]]. Returns true if the result is CVX true. Notably useful for test assertions.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close