Converts unit IDs to unit specifiers and vice-versa.
unit = Inspect.Unit.Lookup(unit) | |||
units = Inspect.Unit.Lookup(units) | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
unit | parameter | unit | A unit ID or unit specifier, whichever is the opposite of the parameter given. May be nil. |
units | parameter | table | A 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. |
unit | result | unit | A unit ID or unit specifier, whichever is the opposite of the parameter given. May be nil. |
units | result | table | A 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. |