@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:
['a','b','c'].iter().enumerate();
This gives back an iterator that would look like this when collected:
[(0,'a'),(1,'b'),(2,'c')]
The elements in this list have been "enumerated", or counted.
@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.