(!.R & body)(def$.R & body)(def.R & body)(defgen.R & body)(defglobal.R & body)(defmacro.R & body)(defptr.R & body)(defrun.R & body)(deftemp.R & body)(tf-defn [_ sym args & body])function declaration for python
(tf-defn '(defn hello [x y] (return (+ x y)))) => '(def hello (fn [x y] (return (+ x y))))
(!.R (defn ^{:inner true} hello [x y] (+ x y)) (hello 1 2)) => 3
function declaration for python
(tf-defn '(defn hello [x y] (return (+ x y))))
=> '(def hello (fn [x y] (return (+ x y))))
(!.R
(defn ^{:inner true}
hello [x y] (+ x y))
(hello 1 2))
=> 3(tf-for-array [_ [e arr] & body])transform for for:array
transform for `for:array`
(tf-for-index [_ [i [start end step]] & body])transform for for:index
transform for `for:index`
(tf-for-iter [_ [e it] & body])transform for for:iter
transform for `for:iter`
(tf-for-object [_ [[k v] m] & body])transform for for:object
transform for `for:object`
(tf-for-return [_ [[res err] statement] {:keys [success error]}])transform for for:return
transform for `for:return`
(tf-infix-if [_ expr & args])transform for infix if
transform for infix if
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 |