io.randomseed.bankster.registry
*default*
dynamic
added in 1.0.0
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
macro
added in 1.0.0
(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.
currency-code->currencies
macro
added in 1.0.0
(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.
currency-id->country-ids
macro
added in 1.0.0
(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.
currency-id->currency
macro
added in 1.0.0
(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.
currency-id->localized
macro
added in 1.0.0
(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.
currency-nr->currency
macro
added in 1.0.0
(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.
get
macro
added in 1.0.0
(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.
new
added in 1.0.0
(new)
(new cur-id->cur cur-nr->cur ctr-id->cur cur-id->ctr-ids 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 ctr-id->cur cur-id->localized cur-code->curs version)
(new cur-id->cur ctr-id->cur cur-id->localized cur-code->curs)
(new m)
Alias for new-registry.
new-registry
added in 1.0.0
(new-registry)
(new-registry cur-id->cur cur-nr->cur ctr-id->cur cur-id->ctr-ids 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 ctr-id->cur cur-id->localized cur-code->curs version)
(new-registry cur-id->cur ctr-id->cur cur-id->localized cur-code->curs)
(new-registry m)
Creates a new registry.
set!
added in 1.0.0
(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.
update
added in 1.0.0
(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.
update!
added in 1.0.0
(update! fun & more)
Updates a global registry using a function that should take a registry and return the updated version of it.
with
macro
added in 1.0.0
(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.