(compile expr)
(compile expr lookup)
(compile expr lookup registry)
Compile an expression into an invoke
able class structure
representing its evaluation. Takes two optional arguments:
lookup
: a symbol -> value map for symbol resolution during
expression compilation. These would typically be constants (strings,
numbers), predefined paths (see path
) or functions. To get all the
public symbols in a namespace as valid lookup values, use
[[namespace->lookup]] for convenience.registry
: Extension entry point for developers. Allows adding new
special forms during compilation. Requires familiarity with library
implementation details, use with care.Compile an expression into an [[invoke]]able class structure representing its evaluation. Takes two optional arguments: - `lookup`: a symbol -> value map for symbol resolution during expression compilation. These would typically be constants (strings, numbers), predefined paths (see [[path]]) or functions. To get all the public symbols in a namespace as valid lookup values, use [[namespace->lookup]] for convenience. - `registry`: Extension entry point for developers. Allows adding new special forms during compilation. Requires familiarity with library implementation details, use with care.
(namespaces->lookup namespaces)
(namespaces->lookup namespaces deref?)
Take a coll of namespaces and return a map of all their publicly
defined symbols to their corresponding vars by way of [[ns-publics]].
To deref the vars, pass the optional arg deref?
a truthy value.
Take a coll of namespaces and return a map of all their publicly defined symbols to their corresponding vars by way of [[ns-publics]]. To deref the vars, pass the optional arg `deref?` a truthy value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close