types.comboΒΆ

type result types.combo ( table desc )

Creates a enumerated type which also accepts strings. Ex: types.combo {"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