enum as option in function, also add string option
When defining a function, there are several ways to limit input to a set of predefined options. I thought it would make sense to use Enum
objects to achieve this. For example:
enum as option in function, also add string option
When defining a function, there are several ways to limit input to a set of predefined options. I thought it would make sense to use Enum
objects to achieve this. For example:
enum as option in function, also add string option
When defining a function, there are several ways to limit input to a set of predefined options. I thought it would make sense to use Enum
objects to achieve this. For example: