Liking cljdoc? Tell your friends :D

emmy.value

The home of most of the protocol-based extensible generic operations offered by Emmy. The bulk of the others live in emmy.generic.

See the Generics cljdocs for a detailed discussion of how to use and extend the generic operations defined in emmy.generic and emmy.value.

The home of most of the protocol-based extensible generic operations offered by
Emmy. The bulk of the others live in [[emmy.generic]].

See [the `Generics`
cljdocs](https://cljdoc.org/d/org.mentat/emmy/CURRENT/doc/basics/generics)
for a detailed discussion of how to use and extend the generic operations
defined in [[emmy.generic]] and [[emmy.value]].
raw docstring

=clj/smultimethod

source

add-object-symbols!clj/s

(add-object-symbols! o->syms)
source

argument-kindclj/s

(argument-kind & args)
source

compareclj/s≠

(compare x y)
clj

Comparator. Returns a negative number, zero, or a positive number when x is logically 'less than', 'equal to', or 'greater than' y. Same as Java x.compareTo(y) except it also works for nil, and compares numbers and collections in a type-independent manner. x must implement Comparable

Comparator. Returns a negative number, zero, or a positive number
when x is logically 'less than', 'equal to', or 'greater than'
y. Same as Java x.compareTo(y) except it also works for nil, and
compares numbers and collections in a type-independent manner. x
must implement Comparable
cljs

Comparator. Clone of [[cljs.core/compare]] that works with the expanded Emmy numeric tower.

Returns a negative number, zero, or a positive number when x is logically 'less than', 'equal to', or 'greater than' y. Uses IComparable if available and google.array.defaultCompare for objects of the same type and special-cases nil to be less than any other object.

Comparator. Clone of [[cljs.core/compare]] that works with the expanded
    Emmy numeric tower.

Returns a negative number, zero, or a positive number when x is logically
'less than', 'equal to', or 'greater than' y. Uses IComparable if available
and google.array.defaultCompare for objects of the same type and special-cases
nil to be less than any other object.
source (clj)source (cljs)raw docstring

IKindclj/sprotocol

kindclj/s

(kind this)
source

integral?clj/s

(integral? x)

Returns true if x is an integral number, false otherwise.

Returns true if x is an integral number, false otherwise.
sourceraw docstring

INumericTowerclj/sprotocol

source

IRealclj/sprotocol

source

kind-predicateclj/s

(kind-predicate x)

Returns a predicate that returns true if its argument matches the supplied kind-keyword k, false otherwise.

Returns a predicate that returns true if its argument matches the supplied
kind-keyword `k`, false otherwise.
sourceraw docstring

make-es6-callablecljs

(make-es6-callable s k)

Make s callable. This is done by re-hosting all of the object properties of s in a new native JS function which delegates to the Clojure application. The result of the application of this new function is supplied to the continuation k.

Make s callable. This is done by re-hosting all of the object properties of `s`
in a new native JS function which delegates to the Clojure application. The
result of the application of this new function is supplied to the continuation `k`.
sourceraw docstring

native-integral?clj/s

(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.
sourceraw docstring

number?clj/s

(number? x)

Returns true if x is any number type in the numeric tower:

  • integral
  • floating point
  • complex
  • fraction

false otherwise.

Returns true if `x` is any number type in the numeric tower:

- integral
- floating point
- complex
- fraction

false otherwise.
sourceraw docstring

Numericalclj/sprotocol

numerical?clj/s

(numerical? x)

Returns true if x is a purely numerical value and should be considered for numerical simplifications, such as $x * 1 == x$ or $x * 0 == 0$.

[[numerical?]] should return false if x has additional, non-numerical structure that should be preserved.

Returns true if `x` is a purely numerical value and should be considered for
 numerical simplifications, such as $x * 1 == x$ or $x * 0 ==
 0$.

[[numerical?]] should return `false` if `x` has additional, non-numerical
 structure that should be preserved.
source

object-name-mapclj/s

source

principal-valueclj/s

(principal-value cuthigh)
source

real?clj/s

(real? x)

Returns true if x is either an integral number or a floating point number (i.e., in the numeric tower but not complex), false otherwise.

Returns true if `x` is either an integral number or a floating point number (i.e.,
in the numeric tower but not complex), false otherwise.
sourceraw docstring

scalar?clj/s

(scalar? x)

Returns true for anything that derives from ::scalar, i.e., any numeric type in the numeric tower that responds true to number?, plus symbolic expressions generated by emmy.abstract.number/literal-number,

false otherwise.

Returns true for anything that derives from `::scalar`, i.e., any numeric type in
the numeric tower that responds true to [[number?]], plus symbolic expressions
generated by [[emmy.abstract.number/literal-number]],

false otherwise.
sourceraw docstring

seqtypeclj/s

source

set-js-meta!cljs

(set-js-meta! o m)

Mutates the native JS object o to have the given metadata. The previous metadata, if any, is discarded. o is returned.

Mutates the native JS object `o` to have the given metadata. The
previous metadata, if any, is discarded. `o` is returned.
sourceraw docstring

twopiclj/s

source

withinclj/s

(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.
sourceraw docstring

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

× close