(!.js & body)(def$.js & body)(def.js & body)(defclass.js & body)(defelem.js & body)(defgen.js & body)(defglobal.js & body)(defmacro.js & body)(defn-.js & body)(defn.js & body)(defptr.js & body)(defrun.js & body)(deftemp.js & body)(js-defclass [_ sym inherit & body])creates a defclass function
creates a defclass function
(js-map m grammar mopts)(tf-for-array [_ [e arr] & body])custom for:array code
(tf-for-array '(for:array [e [1 2 3 4 5]] [k v])) => '(for [(var* :let e) :of (% [1 2 3 4 5])] [k v])
(tf-for-array '(for:array [[i e] arr] [k v])) => '(for [(var* :let i := 0) (< i (. arr length)) (:++ i)] (var* :let e (. arr [i])) [k v])
custom for:array code
(tf-for-array '(for:array [e [1 2 3 4 5]]
[k v]))
=> '(for [(var* :let e) :of (% [1 2 3 4 5])] [k v])
(tf-for-array '(for:array [[i e] arr]
[k v]))
=> '(for [(var* :let i := 0) (< i (. arr length))
(:++ i)] (var* :let e (. arr [i])) [k v])(tf-for-async [_ [[res err] statement] {:keys [success error finally]}])for async transform
for async transform
(tf-for-iter [_ [e it] & body])custom for:iter code
(tf-for-iter '(for:iter [e iter] e)) => '(for [(var* :let e) :of (% iter)] e)
custom for:iter code
(tf-for-iter '(for:iter [e iter]
e))
=> '(for [(var* :let e) :of (% iter)] e)(tf-for-object [_ [[k v] m] & body])custom for:object code
(tf-for-object '(for:object [[k v] {:a 1}] [k v])) => '(for [(var* :let [k v]) :of (Object.entries {:a 1})] [k v])
custom for:object code
(tf-for-object '(for:object [[k v] {:a 1}]
[k v]))
=> '(for [(var* :let [k v]) :of (Object.entries {:a 1})] [k v])(tf-for-return [_ [[res err] statement] {:keys [success error final]}])for return transform
for return transform
(tf-for-try [_ [[res err] statement] {:keys [success error]}])for try transform
for try transform
(tf-var-const [_ decl & args])outputs the const keyword
outputs the const keyword
(tf-var-let [_ decl & args])outputs the let keyword
outputs the let keyword
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |