MyApp.Cldr.Territory.to_currency_codes
You're seeing just the function
to_currency_codes
, go back to MyApp.Cldr.Territory module for more information.
Specs
to_currency_codes(Cldr.Territory.atom_binary_tag(), Cldr.Territory.as_options()) :: {:ok, [Cldr.Territory.atom_binary_charlist()]} | {:error, Cldr.Territory.error()}
A helper method to get a territory's currency codes.
Returns {:ok, list}
if successful, otherwise {:error, reason}
.
options
are:as: :atom
as: :binary
as: :charlist
Example
iex> MyApp.Cldr.Territory.to_currency_codes(:US)
{:ok, [:USD]}
iex> MyApp.Cldr.Territory.to_currency_codes("cu")
{:ok, [:CUP, :CUC]}