This namespace implements minimal support for indexed objects and typed functions.
This namespace implements minimal support for indexed objects and typed functions.
(argument-types f)Given an operator or function f, returns its registered vector of argument
types, or [] if none exist.
argument types are, for example,
[::ff/oneform-field ::vf/vector-field ::vf/vector-field]
for a Christoffel-2, which takes one oneform field and two vector fields.
Given an operator or function `f`, returns its registered vector of argument types, or `[]` if none exist. argument types are, for example, ```clojure [::ff/oneform-field ::vf/vector-field ::vf/vector-field] ``` for a `Christoffel-2`, which takes one oneform field and two vector fields.
(index-types f)Given an operator or function f, returns its registered vector of index
types, or [] if none exist.
index types are, for example,
['up 'down 'down]
for a Christoffel-2, which takes one oneform field and two vector fields.
Given an operator or function `f`, returns its registered vector of index types, or `[]` if none exist. index types are, for example, ```clojure ['up 'down 'down] ``` for a `Christoffel-2`, which takes one oneform field and two vector fields.
(with-argument-types f types)Given some operator or function f, returns a copy of f with the supplied
argument types types registered in its metadata (if a function) or
context (if an operator).
Retrieve these types with argument-types.
Given some operator or function `f`, returns a copy of `f` with the supplied argument types `types` registered in its metadata (if a function) or context (if an operator). Retrieve these types with [[argument-types]].
(with-index-types f types)Given some operator or function f, returns a copy of f with the supplied
index types types registered in its metadata (if a function) or
context (if an operator).
Retrieve these types with index-types.
Given some operator or function `f`, returns a copy of `f` with the supplied index types `types` registered in its metadata (if a function) or context (if an operator). Retrieve these types with [[index-types]].
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |