Cldr.Unit.measurement_system_units
You're seeing just the function
measurement_system_units
, go back to Cldr.Unit module for more information.
Specs
measurement_system_units(measurement_system()) :: [translatable_unit(), ...] | {:error, {module(), String.t()}}
Returns the list of units defined in a given measurement system.
Arguments
system
is any measurement system returned byCldr.Unit.known_measurement_systems/0
Returns
A list of translatable units as atoms or
{:error, {exception, message}}
Example
=> Cldr.Unit.measurement_system_units :uksystem
[
:ton,
:inch,
:yard,
...
]