Skip to main content
enumerable

enumerable

7.8
Can be listed and used one item at a time by a program
  • adjective
  • /ɪˈnjuːmərəbl/
  • Specialized
translation icon : enumerable
  • 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

iterable
vsenumerable
  • Specialized
7.7

A collection you can use in a loop to access items, like a list or string

is recognized by the language or API for built-in listing operations

Surface Forms

enumerable positive

Morphology

enumerable = enumerate (transparent) = enumerate + able

In programming contexts the adjective signals that a collection can be listed/iterated; the morphological relation to 'enumerate' + '-able' remains direct though the usage is technical.

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.