(arity f)
Return the cached or obvious arity of the object if we know it. Otherwise delegate to the heavy duty reflection, if we have to.
Return the cached or obvious arity of the object if we know it. Otherwise delegate to the heavy duty reflection, if we have to.
(exposed-arities f)
When CLJS functions have different arities, the function is represented as a js object with each arity storied under its own key.
When CLJS functions have different arities, the function is represented as a js object with each arity storied under its own key.
(integral? x)
Returns true if x is an integral number, false otherwise.
Returns true if x is an integral number, false otherwise.
(joint-arity arities)
Find the most relaxed possible statement of the joint arity of the given arities. If they are incompatible, an exception is thrown.
Find the most relaxed possible statement of the joint arity of the given arities. If they are incompatible, an exception is thrown.
(js-arity f)
Returns a data structure indicating the arity of the supplied function.
Returns a data structure indicating the arity of the supplied function.
(native-integral? x)
Returns true if x is an integral number that Clojure's math operations work with, false otherwise.
Returns true if x is an integral number that Clojure's math operations work with, false otherwise.
(exact? this)
(freeze this)
Freezing an expression means removing wrappers and other metadata from subexpressions, so that the result is basically a pure S-expression with the same structure as the input. Doing this will rob an expression of useful information for further computation; so this is intended to be done just before simplification and printing, to simplify those processes.
Freezing an expression means removing wrappers and other metadata from subexpressions, so that the result is basically a pure S-expression with the same structure as the input. Doing this will rob an expression of useful information for further computation; so this is intended to be done just before simplification and printing, to simplify those processes.
(kind this)
(nullity? this)
(numerical? this)
(one-like this)
(unity? this)
(zero-like this)
(variadic? f)
Returns true if the supplied function is variadic, false otherwise.
Returns true if the supplied function is variadic, false otherwise.
(within ε)
Returns a function that tests whether two values are within ε of each other.
Returns a function that tests whether two values are within ε of each other.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close