Liking cljdoc? Tell your friends :D

hara.function.base.native


fn-body-argsclj

(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)]
raw docstring

fn-body-functionclj

(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))
raw docstring

fn-body-predicateclj

(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)))))
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close