Top "Iterable" questions

An iterable is an object, such as a string or collection, that can be iterated over, yielding up its members one at a time.

How do I add the contents of an iterable to a set?

What is the "one [...] obvious way" to add all items of an iterable to an existing set?

python set conventions iterable
Why does Java not allow foreach on iterators (only on iterables)?

Possible Duplicate: Why is Java's Iterator not an Iterable? Idiomatic way to use for-each loop given an iterator? Can we …

java syntax iterator language-design iterable
Length of generator output

Python provides a nice method for getting length of an eager iterable, len(x) that is. But I couldn't find …

python generator iterable
Using Objects in For Of Loops

Why isn't is possible to use objects in for of loops? Or is this a browser bug? This code doesn't …

javascript for-loop ecmascript-6 iterable
Check if all values of iterable are zero

Is there a good, succinct/built-in way to see if all the values in an iterable are zeros? Right now …

python iterable
"Can only join an iterable" python error

I've already looked at this post about iterable python errors: "Can only iterable" Python error But that was about the …

python python-3.x iterable
Convert ES6 Iterable to Array

Say you have an array-like Javascript ES6 Iterable that you know in advance will be finite in length, what's the …

javascript arrays ecmascript-6 iterable babeljs
Finding the Max value in a two dimensional Array

I'm trying to find an elegant way to find the max value in a two-dimensional array. for example for this …

python arrays list max iterable
Why is Java's Iterator not an Iterable?

Why does the Iterator interface not extend Iterable? The iterator() method could simply return this. Is it on purpose or …

java iterator iterable
What is the Iterable interface used for?

I am a beginner and I cannot understand the real effect of the Iterable interface.

java iterable