(compile expr)(compile expr lookup)(compile expr lookup registry)Compile an expression into an invokeable 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.
(namespace->lookup namespaces)(namespace->lookup deref? namespaces)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 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 |