misc utility functions
misc utility functions
(data-error data qid)
(data-error data qid reason)
returns an exception represent data is not as expected
data
: the data been queriesqid
: the query id being runningreason
: a string general descriptionreturns an exception represent data is not as expected - `data`: the data been queries - `qid`: the query id being running - `reason`: a string general description
(named-lvar? x)
predict if x
is a named logical value
predict if `x` is a named logical value
(named-lvars-in-pattern pattern)
returns named lvars in pattern
returns named lvars in `pattern`
(optional-require require-clause if-body else-body)
optionally try requre require-clause
, if success, run if-body
,
else else-body
optionally try requre `require-clause`, if success, run `if-body`, else `else-body`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close