MyApp.Cldr.Territory.to_unicode_flag

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

to_unicode_flag(territory_code)

View Source

Specs

to_unicode_flag(
  Cldr.Territory.atom_binary_tag()
  | {:ok, atom()}
  | {:error, Cldr.Territory.error()}
) :: {:ok, binary()} | {:error, Cldr.Territory.error()}

Unicode flag for the given territory code. Returns {:ok, flag} if successful, otherwise {:error, reason}.

Example

iex> MyApp.Cldr.Territory.to_unicode_flag(:US)
{:ok, "πŸ‡ΊπŸ‡Έ"}

iex> MyApp.Cldr.Territory.to_unicode_flag(:EZ)
{:error, {Cldr.UnknownFlagError, "The territory :EZ has no flag"}}