Shamelessly stolen from ztellman's excellent library Potemkin https://raw.githubusercontent.com/ztellman/potemkin/5eb267826131c8cb861d5defbcc87e5d084823d7/src/potemkin/namespaces.clj
Shamelessly stolen from ztellman's excellent library Potemkin https://raw.githubusercontent.com/ztellman/potemkin/5eb267826131c8cb861d5defbcc87e5d084823d7/src/potemkin/namespaces.clj https://github.com/ztellman/potemkin
(import-def sym)
(import-def sym name)
Given a regular def'd var from another namespace, defined a new var with the same name in the current namespace.
Given a regular def'd var from another namespace, defined a new var with the same name in the current namespace.
(import-fn sym)
(import-fn sym name)
Given a function in another namespace, defines a function with the same name in the current namespace. Argument lists, doc-strings, and original line-numbers are preserved.
Given a function in another namespace, defines a function with the same name in the current namespace. Argument lists, doc-strings, and original line-numbers are preserved.
(import-macro sym)
(import-macro sym name)
Given a macro in another namespace, defines a macro with the same name in the current namespace. Argument lists, doc-strings, and original line-numbers are preserved.
Given a macro in another namespace, defines a macro with the same name in the current namespace. Argument lists, doc-strings, and original line-numbers are preserved.
(import-vars & syms)
Imports a list of vars from other namespaces.
Imports a list of vars from other namespaces.
(link-vars src dst)
Makes sure that all changes to src
are reflected in dst
.
Makes sure that all changes to `src` are reflected in `dst`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close