(fn-body-args name? & body)
seperates elements of the function body
(fn-body-args 'hello '([x] x)) => '[hello [x] (x)]
(fn-body-args '([x] x)) => '[nil [x] (x)]
seperates elements of the function body (fn-body-args 'hello '([x] x)) => '[hello [x] (x)] (fn-body-args '([x] x)) => '[nil [x] (x)]
(fn-body-function body)
(fn-body-function _ body)
creates a body for type java.util.function.Function
(fn-body-function '([x] x)) => '(clojure.core/reify java.util.function.Function (toString [_] "([x] x)") (apply [_ x] x))
creates a body for type `java.util.function.Function` (fn-body-function '([x] x)) => '(clojure.core/reify java.util.function.Function (toString [_] "([x] x)") (apply [_ x] x))
(fn-body-predicate body)
(fn-body-predicate _ body)
creates a body for type java.util.function.Predicate
(fn-body-predicate '([x] (odd? x))) => '(clojure.core/reify java.util.function.Predicate (toString [_] "([x] (odd? x))") (test [_ x] (clojure.core/boolean (do (odd? x)))))
creates a body for type `java.util.function.Predicate` (fn-body-predicate '([x] (odd? x))) => '(clojure.core/reify java.util.function.Predicate (toString [_] "([x] (odd? x))") (test [_ x] (clojure.core/boolean (do (odd? x)))))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close