Cldr.Unit.measurement_system_units

You're seeing just the function measurement_system_units, go back to Cldr.Unit module for more information.
Link to this function

measurement_system_units(system)

View Source (since 3.4.0)

Specs

measurement_system_units(measurement_system()) ::
  [translatable_unit(), ...] | {:error, {module(), String.t()}}

Returns the list of units defined in a given measurement system.

Arguments

Returns

  • A list of translatable units as atoms or

  • {:error, {exception, message}}

Example

=> Cldr.Unit.measurement_system_units :uksystem
[
  :ton,
  :inch,
  :yard,
  ...
]