Inspect.Unit.Lookup

Converts unit IDs to unit specifiers and vice-versa.

Usage:

unit = Inspect.Unit.Lookup(unit)
units = Inspect.Unit.Lookup(units)
ParameterTypeDatatypeDescription
unitparameterunitA unit ID or unit specifier, whichever is the opposite of the parameter given. May be nil.
unitsparametertableA table of unit IDs and unit specifiers. The key is the input, the value is the result. Invalid inputs will not result in output entries.
unitresultunitA unit ID or unit specifier, whichever is the opposite of the parameter given. May be nil.
unitsresulttableA table of unit IDs and unit specifiers. The key is the input, the value is the result. Invalid inputs will not result in output entries.