MyApp.Cldr.Territory.to_currency_codes-exclamation-mark
You're seeing just the function
to_currency_codes-exclamation-mark
, go back to MyApp.Cldr.Territory module for more information.
Specs
to_currency_codes!( Cldr.Territory.atom_binary_tag(), Cldr.Territory.as_options() ) :: [Cldr.Territory.atom_binary_charlist()] | no_return()
The same as to_currency_codes/2
, but raises an exception if it fails.
options
are:as: :atom
as: :binary
as: :charlist
Example
iex> MyApp.Cldr.Territory.to_currency_codes!(:US)
[:USD]
iex> MyApp.Cldr.Territory.to_currency_codes!(:US, as: :charlist)
['USD']
iex> MyApp.Cldr.Territory.to_currency_codes!("PS")
[:ILS, :JOD]
iex> MyApp.Cldr.Territory.to_currency_codes!("PS", as: :binary)
["ILS", "JOD"]