Home

This is the documentation home for Enumerate, a library for creating custom enumerations in Roblox Lua:

enumerate("Sport", { "Basketball", "Baseball", "Hockey", })

Enumerations created by Enumerate have a few advantages over simple tables:

  1. Read-only -> erroring on modification attempts
  2. Catch typos -> erroring when accessing invalid enum values
  3. Raw value support -> allowing for testing membership and using values directly
  4. Debugging friendly -> useful tostring implementations for enumerations and their values
  5. Reduced boilerplate -> simple string enums can be created with a list-like table syntax

Jump over to the API Reference to learn more!