Liking cljdoc? Tell your friends :D

emmy.operator


anticommutatorclj/s

(anticommutator o p)
source

arityclj/s

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

commutatorclj/s

(commutator o p)
source

contextclj/s

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

expclj/s

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

expnclj/s

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

identityclj/s

Identity operator. Returns its argument unchanged.

Identity operator. Returns its argument unchanged.
sourceraw docstring

make-operatorclj/s

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

nameclj/s

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

operator?clj/s

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

procedureclj/s

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

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

× close