(arity op)
Returns the arity of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
Returns the arity of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
(context op)
Returns the context field of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
Returns the context field of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
(exp op)
Returns an operator represented by a Taylor series expansion of $e^x$, applied
to op
. This expanded series of operators is itself an operator that applies
each element to its argument.
Put another way: (exp g)
to an operator g means forming the power series
I + g + 1/2 g^2 + ... + 1/n! g^n
where (as elsewhere) exponentiating the operator means n
-fold composition.
Returns an operator represented by a Taylor series expansion of $e^x$, applied to `op`. This expanded series of operators is itself an operator that applies each element to its argument. Put another way: `(exp g)` to an operator g means forming the power series ``` I + g + 1/2 g^2 + ... + 1/n! g^n ``` where (as elsewhere) exponentiating the operator means `n`-fold composition.
(expn op)
(expn op n)
Similar to exp
, but takes an optional argument n
that defines an order for
each term of the taylor series expansion.
Similar to `exp`, but takes an optional argument `n` that defines an order for each term of the taylor series expansion.
Identity operator. Returns its argument unchanged.
Identity operator. Returns its argument unchanged.
(make-operator f)
(make-operator f name)
(make-operator f name context)
Returns an [[Operator]] wrapping the supplied procedure f
with the symbolic
name name
. (name
defaults to '???
.)
Optionally accepts a context
map that will be stored inside the
returned [[Operator]].
Returns an [[Operator]] wrapping the supplied procedure `f` with the symbolic name `name`. (`name` defaults to `'???`.) Optionally accepts a `context` map that will be stored inside the returned [[Operator]].
(name op)
Returns the stored name of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
Returns the stored name of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
(operator? x)
Returns true if the supplied x
is an instance of [[Operator]], false
otherwise.
Returns true if the supplied `x` is an instance of [[Operator]], false otherwise.
(procedure op)
Returns the backing procedure of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
Returns the backing procedure of the supplied [[Operator]]. Errors if a non-[[Operator]] is supplied.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close