Creates an enum
Aliases:
enum class MyEnum { value1, value2, // Add more values here};
enum MyEnum { value1, value2, // Add more values here}
const ( variable1 = iota variable2 variable3 // Add more variables here)
enum class MyEnum { value1, value2, // Add more values here}
# Perl does not have a built-in enum type. Use a list or hash instead.
abstract class MyEnum { const VALUE1 = 0; const VALUE2 = 1; // Add more values here}
class MyEnum(Enum): value1 = 1 value2 = 2 # Add more values here
# R does not have a built-in enum type. Use a list or vector instead.
MyEnum = [:value1, :value2]# Access: MyEnum[0] # :value1
enum MyEnum { Variant1, Variant2, // Add more variants here}