MyApp.Cldr.Currency.known_currency_code-question-mark

You're seeing just the function known_currency_code-question-mark, go back to MyApp.Cldr.Currency module for more information.
Link to this function

known_currency_code?(currency_code)

View Source

Specs

known_currency_code?(Cldr.Currency.code()) :: boolean()

Returns a boolean indicating if the supplied currency code is known.

Arguments

  • currency_code is a binary or atom representing an ISO4217 currency code

Returns

  • true or false

Examples

iex> MyApp.Cldr.Currency.known_currency_code? "AUD"
true

iex> MyApp.Cldr.Currency.known_currency_code? "GGG"
false

iex> MyApp.Cldr.Currency.known_currency_code? :XCV
false