Can you please explain to me what is Enumeration in computing.
For further actions, you may consider blocking this person and/or reporting abuse
Can you please explain to me what is Enumeration in computing.
For further actions, you may consider blocking this person and/or reporting abuse
Mark Smith -
Dl -
Evan Marie Carr -
Carlos -
Top comments (4)
@nestedsoftware gave a solid answer about what an
enum
type is, but "enumeration" just means to make a list of things in sequence, or count them. You could enumerate a list - for instance, in Rust:This gives back an iterator that would look like this when collected:
The elements in this list have been "enumerated", or counted.
Thank you, now it’s making sense to me.
Are you referring to an ‘enum’ type? If so, it’s a type that allows you to define a finite sequence of named values for that type. Here’s an example from typescript:
Not all languages have enums. You can read more about it on Wikipedia: en.m.wikipedia.org/wiki/Enumerated...
Thank you