-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code
Description
Feature:
If we have an Enum, add the ability to access all of it's values as a list (or any other iterable).
enum Colour { red = 'RED', green = 'GREEN' }
Colour.toList() === ['RED', 'GREEN']
We could have a separate call for the keys? Or vice versa?
It is quite useful as you'd frequently want to be able to iterate over them somehow. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code