enumerable
- adjective
- /ɪˈnjuːmərəbl/
- Specialized
- When debugging a function, ensure that the variable you are using is an enumerable object so you can iterate through its properties.
Examples
-
In programming, an array is an enumerable collection that allows you to access each item in a loop.
-
When you realize that any value (e.g., nil, as you suggest) returned by next could be the next value of the enumerable, it becomes clear that it's not possible for it to return a special-case value, since that could then never be in the enumerable.
Blog text (30) -
So if you have a non-enumerator solution for iterating through an enumerable, feel free to share.
Blog text (30) -
When you realize that any value (e.g., nil, as you suggest) returned by next could be the next value of the enumerable, it becomes clear that it's not possible for it to return a special-case value, since that could then never be in the enumerable.
Blog text (30) -
The library provides various methods to manipulate enumerable data structures like lists and sets.
Synonyms
A collection you can use in a loop to access items, like a list or string
Surface Forms
Morphology
Etymology
Enumerable comes from the Latin enumerare ('to count out') and is related to number and numeral. So in programming, an enumerable object is one you can list or go through 'one by one', which is why it works with loops and lists.