(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]]
(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)
(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
(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*) => ()
(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*)
(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"
(ns-clear-refers ns)
clears all refers in a given namespace
clears all refers in a given namespace
(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)
(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?
(ns-list)
returns all existing clojure namespaces
(ns-list) => coll?
returns all existing clojure namespaces (ns-list) => coll?
(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)
(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
(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]
(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-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?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close