Registry, that if set to a truthy value (not nil and not false), will be used instead of a global, shared registry.
Registry, that if set to a truthy value (not nil and not false), will be used instead of a global, shared registry.
(country-id->currency)
(country-id->currency registry)
Returns the country ID to currency map from a registry. If the registry is not given the dynamic variable default is tried. If it is not set, current state of a global registry is used instead.
Returns the country ID to currency map from a registry. If the registry is not given the dynamic variable *default* is tried. If it is not set, current state of a global registry is used instead.
(currency-code->currencies)
(currency-code->currencies registry)
Returns the currency short-code to currencies map from a registry. If the registry is not given the dynamic variable default is tried. If it is not set, current state of a global registry is used instead.
Returns the currency short-code to currencies map from a registry. If the registry is not given the dynamic variable *default* is tried. If it is not set, current state of a global registry is used instead.
(currency-id->country-ids)
(currency-id->country-ids registry)
Returns the currency ID to country IDs map from a registry. If the registry is not given the dynamic variable default is tried. If it is not set, current state of a global registry is used instead.
Returns the currency ID to country IDs map from a registry. If the registry is not given the dynamic variable *default* is tried. If it is not set, current state of a global registry is used instead.
(currency-id->currency)
(currency-id->currency registry)
Returns the currency ID to currency map from a registry. If the registry is not given the dynamic variable default is tried. If it is not set, current state of a global registry is used instead.
Returns the currency ID to currency map from a registry. If the registry is not given the dynamic variable *default* is tried. If it is not set, current state of a global registry is used instead.
(currency-id->localized)
(currency-id->localized registry)
Returns the currency ID to localized propertied map from a registry. If the registry is not given the dynamic variable default is tried. If it is not set, current state of a global registry is used instead.
Returns the currency ID to localized propertied map from a registry. If the registry is not given the dynamic variable *default* is tried. If it is not set, current state of a global registry is used instead.
(currency-nr->currency)
(currency-nr->currency registry)
Returns the currency number to currency map from a registry. If the registry is not given the dynamic variable default is tried. If it is not set, current state of a global registry is used instead.
Returns the currency number to currency map from a registry. If the registry is not given the dynamic variable *default* is tried. If it is not set, current state of a global registry is used instead.
(get)
Gets the current state of a global registry. If the dynamic variable default is set to a truthy value, it will be used instead.
Gets the current state of a global registry. If the dynamic variable *default* is set to a truthy value, it will be used instead.
(global)
Returns global registry object.
Returns global registry object.
(new)
(new m)
(new cur-id->cur ctr-id->cur cur-id->localized cur-code->curs)
(new cur-id->cur ctr-id->cur cur-id->localized cur-code->curs version)
(new cur-id->cur
cur-nr->cur
ctr-id->cur
cur-id->ctr-ids
cur-id->localized
cur-code->curs)
(new cur-id->cur
cur-nr->cur
ctr-id->cur
cur-id->ctr-ids
cur-id->localized
cur-code->curs
version)
Alias for new-registry.
Alias for new-registry.
(new-registry)
(new-registry m)
(new-registry cur-id->cur ctr-id->cur cur-id->localized cur-code->curs)
(new-registry cur-id->cur ctr-id->cur cur-id->localized cur-code->curs version)
(new-registry cur-id->cur
cur-nr->cur
ctr-id->cur
cur-id->ctr-ids
cur-id->localized
cur-code->curs)
(new-registry cur-id->cur
cur-nr->cur
ctr-id->cur
cur-id->ctr-ids
cur-id->localized
cur-code->curs
version)
Creates a new registry.
Creates a new registry.
Global registry object based on an Atom.
Global registry object based on an Atom.
(registry? obj)
Returns true if the given object is a registry.
Returns true if the given object is a registry.
(set! registry)
(set! cur-id->cur
cur-nr->cur
ctr-id->cur
cur-id->ctr-ids
cur-id->localized
cur-code->curs)
(set! cur-id->cur
cur-nr->cur
ctr-id->cur
cur-id->ctr-ids
cur-id->localized
cur-code->curs
version)
Sets current state of a global registry.
Sets current state of a global registry.
(state)
Returns current state of a global registry.
Returns current state of a global registry.
(update r fun & more)
Updates a registry with a function that should take a registry as its first argument and return the updated one. It is a simple apply-based implementation provided for the sake of symmetry with update! which operates on a global registry object.
Updates a registry with a function that should take a registry as its first argument and return the updated one. It is a simple apply-based implementation provided for the sake of symmetry with update! which operates on a global registry object.
(update! fun & more)
Updates a global registry using a function that should take a registry and return the updated version of it.
Updates a global registry using a function that should take a registry and return the updated version of it.
(with registry & body)
Sets a registry in a lexical context of the body to be used instead of a global one in functions which require the registry and it was not passed as an argument.
Sets a registry in a lexical context of the body to be used instead of a global one in functions which require the registry and it was not passed as an argument.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close