Liking cljdoc? Tell your friends :D

hara.module.namespace.common


+class-cache+clj


+namespaces+clj


+ns-clojure-imports+clj


+rq+clj


group-in-memoryclj

(group-in-memory results)

creates human readable results from the class list

(group-in-memory ["hara.code$add$1" "hara.code$add$2" "hara.code$sub$1" "hara.code$sub$2"]) => '[[add 2] [sub 2]]

creates human readable results from the class list

(group-in-memory ["hara.code$add$1" "hara.code$add$2"
                  "hara.code$sub$1" "hara.code$sub$2"])
=> '[[add 2]
     [sub 2]]
raw docstring

ns-clearclj

(ns-clear ns)

clears all mappings and aliases in a given namespace

(ns-clear)

clears all mappings and aliases in a given namespace

(ns-clear)
raw docstring

ns-clear-aliasesclj

(ns-clear-aliases ns)

removes all namespace aliases

;; require clojure.string (require '[clojure.string :as string]) => nil

;; error if a new namespace is set to the same alias (require '[clojure.set :as string]) => (throws) ;; Alias string already exists in namespace

;; clearing all aliases (ns-clear-aliases)

(ns-aliases ns) => {}

;; okay to require (require '[clojure.set :as string]) => nil

removes all namespace aliases

;; require clojure.string
(require '[clojure.string :as string])
=> nil

;; error if a new namespace is set to the same alias
(require '[clojure.set :as string])
=> (throws) ;;  Alias string already exists in namespace

;; clearing all aliases
(ns-clear-aliases)

(ns-aliases *ns*)
=> {}

;; okay to require
(require '[clojure.set :as string])
=> nil
raw docstring

ns-clear-external-importsclj

(ns-clear-external-imports ns)

clears all external imports

(ns-clear-external-imports ns) (ns-list-external-imports ns) => ()

clears all external imports

(ns-clear-external-imports *ns*)
(ns-list-external-imports *ns*)
=> ()
raw docstring

ns-clear-internsclj

(ns-clear-interns ns)

clears all interns in a given namespace

(ns-clear-interns ns)

clears all interns in a given namespace

(ns-clear-interns *ns*)
raw docstring

ns-clear-mappingsclj

(ns-clear-mappings ns)

removes all mapped vars in the namespace

;; require join (require '[clojure.string :refer [join]])

;; check that it runs (join ["a" "b" "c"]) => "abc"

;; clear mappings (ns-clear-mappings)

;; the mapped symbol is gone (join ["a" "b" "c"]) => (throws) ;; "Unable to resolve symbol: join in this context"

removes all mapped vars in the namespace

;; require `join`
(require '[clojure.string :refer [join]])

;; check that it runs
(join ["a" "b" "c"])
=> "abc"

;; clear mappings
(ns-clear-mappings)

;; the mapped symbol is gone
(join ["a" "b" "c"])
=> (throws) ;; "Unable to resolve symbol: join in this context"
raw docstring

ns-clear-refersclj

(ns-clear-refers ns)

clears all refers in a given namespace

clears all refers in a given namespace
raw docstring

ns-deleteclj

(ns-delete ns)

clears all namespace mappings and remove namespace from clojure environment

(ns-delete 'hara.module.namespace)

(ns-delete 'hara.module.namespace-test)

clears all namespace mappings and remove namespace from clojure environment

(ns-delete 'hara.module.namespace)

(ns-delete 'hara.module.namespace-test)
raw docstring

ns-in-memoryclj

(ns-in-memory ns)

retrieves all the clojure namespaces currently in memory

(ns-in-memory 'hara.code) ;;[[EVAL 2]] => coll?

retrieves all the clojure namespaces currently in memory

(ns-in-memory 'hara.code)
;;[[EVAL 2]]
=> coll?
raw docstring

ns-listclj

(ns-list)

returns all existing clojure namespaces

(ns-list) => coll?

returns all existing clojure namespaces

(ns-list)
=> coll?
raw docstring

ns-list-external-importsclj

(ns-list-external-imports ns)

lists all external imports

(import java.io.File) (ns-list-external-imports ns) => '(File)

lists all external imports

(import java.io.File)
(ns-list-external-imports *ns*)
=> '(File)
raw docstring

ns-loaded?clj

(ns-loaded? ns)

checks if the namespaces is currently active

(ns-loaded? 'hara.module.namespace.common) => true

checks if the namespaces is currently active

(ns-loaded? 'hara.module.namespace.common)
=> true
raw docstring

ns-unaliasclj

(ns-unalias ns refer)

removes given aliases in namespaces

(ns-unalias ns '[hello world]) => '[hello world]

removes given aliases in namespaces

(ns-unalias *ns* '[hello world])
=> '[hello world]
raw docstring

ns-unmapclj

(ns-unmap ns refer)

removes given mapped elements in namespaces

(ns-unmap ns '[hello world]) => '[hello world]

removes given mapped elements in namespaces

(ns-unmap *ns* '[hello world])
=> '[hello world]
raw docstring

raw-in-memoryclj

(raw-in-memory ns)

returns a list of keys representing objects

(raw-in-memory 'hara.code) ;;("hara.code$eval6411" "hara.code$eval6411$loading__5569__auto____6412") => coll?

returns a list of keys representing objects

(raw-in-memory 'hara.code)
;;("hara.code$eval6411" "hara.code$eval6411$loading__5569__auto____6412")
=> coll?
raw docstring

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

× close