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.
Link to this function

to_currency_codes!(territory_code, opts \\ [as: :atom])

View Source

Specs

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"]