Skip to content
Supuhstar edited this page Apr 9, 2014 · 1 revision

The features in this page are of this micro enum implementation. For demonstrative purposes, we're using the days enum type we made in Creation.

Table of Contents

Enumeration constants

Each enum type comes with all the enumeration constants (or keys) specified when it was created. The ordinals of these are technically editable, but editing them is highly discouraged.

Example

days.Sunday
days.Monday
days.Tuesday
days.Wednesday
days.Thursday
days.Friday
days.Saturday

All values as an array

Each enum type comes with a variable all that contains integers representing the ordinals of the types in this enum. Again, it is highly discouraged to edit this variable or its contents.

This can be used to find the number of constants, and to test if one of these constants matches an integer.

Example

days.all

All constants as an array

Each enum type comes with an variable keys all enumeration constants. As with everything else in this, it's highly discouraged to edit this variable or its contents.

Example

days.keys

See Also

  • Use on how to use these features
Clone this wiki locally