Liking cljdoc? Tell your friends :D

io.randomseed.bankster.registry


*default*clj

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

country-id->currencycljmacro

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

currency-code->currenciescljmacro

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

currency-id->country-idscljmacro

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

currency-id->currencycljmacro

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

currency-id->localizedcljmacro

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

currency-nr->currencycljmacro

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

default-versionclj

(default-version)
source

getcljmacro

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

globalclj

(global)

Returns global registry object.

Returns global registry object.
sourceraw docstring

newclj

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

new-registryclj

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

Rclj

Global registry object based on an Atom.

Global registry object based on an Atom.
sourceraw docstring

registry?clj

(registry? obj)

Returns true if the given object is a registry.

Returns true if the given object is a registry.
sourceraw docstring

set!clj

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

stateclj

(state)

Returns current state of a global registry.

Returns current state of a global registry.
sourceraw docstring

updateclj

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

update!clj

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

withcljmacro

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

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

× close