MyApp.Cldr.Territory.to_currency_code-exclamation-mark

You're seeing just the function to_currency_code-exclamation-mark, go back to MyApp.Cldr.Territory module for more information.
Link to this function

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

View Source

Specs

The same as to_currency_code/2, but raises an exception if it fails.

  • options are:
    • as: :atom
    • as: :binary
    • as: :charlist

Example

iex> MyApp.Cldr.Territory.to_currency_code!(:US)
:USD

iex> MyApp.Cldr.Territory.to_currency_code!(:US, as: :charlist)
'USD'

iex> MyApp.Cldr.Territory.to_currency_code!("PS")
:ILS

iex> MyApp.Cldr.Territory.to_currency_code!("PS", as: :binary)
"ILS"