types.enumΒΆ
Creates a enumerated type. Ex: types.enum {"ItemA",{"ItemB",12},"ItemC"}
Arguments:
desc A table of the type enum, as a list of items. Each item can be a single string or a pair of string and value.
Return:
result The created type
Creates a enumerated type. Ex: types.enum {"ItemA",{"ItemB",12},"ItemC"}