Utilities common for clojure and clojurescript
Utilities common for clojure and clojurescript
(d form)
The internal macro to debug dbg macro.
<form any> a form to be evaluated
The internal macro to debug dbg macro. <form any> a form to be evaluated
(tidy-macroexpanded-form form state)
Takes a macroexpanded form and tidies it up to be more readable by unmapping gensyms and replacing fully qualified namespaces with aliases or nothing if the function is referred.
Takes a macroexpanded form and tidies it up to be more readable by unmapping gensyms and replacing fully qualified namespaces with aliases or nothing if the function is referred.
(vec->map v)
Transsub-forms a vector into an array-map with key/value pairs. (def a 10) (def b 20) (vec-map [a b :c [30 40]]) => {:a 10 :b 20 ::c :c :[30 40] [30 40]}
Transsub-forms a vector into an array-map with key/value pairs. (def a 10) (def b 20) (vec-map [a b :c [30 40]]) => {:a 10 :b 20 ::c :c :[30 40] [30 40]}
(with-gensyms-names form mapping)
Reverse gensym'd names to their original source form to make them easier to read.
Reverse gensym'd names to their original source form to make them easier to read.
(with-symbols-names form {:keys [context refers aliases] :as state} mapping)
Tidy up fully qualified names that have aliases in the existing namespace.
Tidy up fully qualified names that have aliases in the existing namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close