iterable
- noun
- /ˈɪtərəbəl/
- Specialized
- The list of numbers is an iterable that you can easily access with a for loop.
Examples
-
If you go through it, we get an iterable of pairs of keys and values.
-
So notice the months here is actually this, this, this the value that this range returns, which is like an iterable, like a tuple.
-
In Python, an iterable allows you to traverse its elements using a loop.
-
To display each item in the set, we need to use the iterable interface.
Synonyms
Can be listed and used one item at a time by a program
Surface Forms
Morphology
Etymology
Iterable as a noun shares the Latin root iter- from iterare, meaning 'to do again', and simply means 'something you can go through'. So an iterable object, like a list or a string, is one you can loop over to visit each element in order.