Cldr.Currency.territory_currencies-exclamation-mark
You're seeing just the function
territory_currencies-exclamation-mark
, go back to Cldr.Currency module for more information.
Returns a list of currencies associated with a given territory.
Arguments
territory
is any valid ISO 3166 Alpha-2 territory code. SeeCldr.validate_territory/1
.
Returns
map
wheremap
has as its key at:Cldr.Currency
struct and the value is a map of validity dates for that currency; orraises an exception
Example
iex> Cldr.Currency.territory_currencies(:LT)
%{
EUR: %{from: ~D[2015-01-01], to: nil},
LTL: %{from: nil, to: ~D[2014-12-31]},
LTT: %{from: nil, to: ~D[1993-06-25]},
SUR: %{from: nil, to: ~D[1992-10-01]}
}