Liking cljdoc? Tell your friends :D

imminent.util.namespaces

Shamelessly stolen from ztellman's excellent library Potemkin
https://raw.githubusercontent.com/ztellman/potemkin/5eb267826131c8cb861d5defbcc87e5d084823d7/src/potemkin/namespaces.clj

https://github.com/ztellman/potemkin
raw docstring

import-defcljmacro

(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.
raw docstring

import-fncljmacro

(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.
raw docstring

import-macrocljmacro

(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.
raw docstring

import-varscljmacro

(import-vars & syms)

Imports a list of vars from other namespaces.

Imports a list of vars from other namespaces.
raw docstring

(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`.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close