(import nsp vars & more)
Imports all or a selection of vars from one namespace to the current one.
(import hara.common.checks [bytes? long?]) => nil (eval '(long? 1)) => true (eval '(bytes? 1)) => false
(import hara.common.checks :all) => nil (eval '(bigint? 1)) => false
Imports all or a selection of vars from one namespace to the current one. (import hara.common.checks [bytes? long?]) => nil (eval '(long? 1)) => true (eval '(bytes? 1)) => false (import hara.common.checks :all) => nil (eval '(bigint? 1)) => false
(import-namespace ns)
(import-namespace ns vars)
Imports all or a selection of vars from one namespace to the current one.
(import-namespace 'hara.common.checks '[bytes? long?]) (eval '(long? 1)) => true (eval '(bytes? 1)) => false
Imports all or a selection of vars from one namespace to the current one. (import-namespace 'hara.common.checks '[bytes? long?]) (eval '(long? 1)) => true (eval '(bytes? 1)) => false
(import-var name var)
Imports a single var from one namespace to the current one.
(import-var 'ifl #'clojure.core/if-let) => anything ; #'hara.namespace.import-test/ifl (eval '(ifl [a 1] (inc a))) => 2
Imports a single var from one namespace to the current one. (import-var 'ifl #'clojure.core/if-let) => anything ; #'hara.namespace.import-test/ifl (eval '(ifl [a 1] (inc a))) => 2
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close