-
Notifications
You must be signed in to change notification settings - Fork 2
mint.enum
Palamecia edited this page Dec 4, 2022
·
2 revisions
load mint.enum
This module provides a set of functions to perform extra operations on enums.
def (const self, % value)
Returns the member name from self
that is equal to value
. If self
is not an enum or has no member that match value
, none
is returned.
def (const self, value)
Returns the first member from self
that is equal to value
. If self
is not an enum or has no member that match value
, none
is returned.
Language reference
- Introduction
- Variables
- Built-in types
- Arithmetic operations
- Type casting
- Control structures
- Function definition
- User defined types
- Work with modules
Library reference