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.

Opposite of any() function

The Python built-in function any(iterable) can help to quickly check if any bool(element) is True in a iterable …

python python-3.x iterable
convert list of data object to csv

I'm using python 2.7.6. I would like to convert my list of objects into csv format. I have a list of …

python python-2.7 csv iterable
Why doesn't the String class in Java implement Iterable?

Many Java framework classes implement Iterable, however String does not. It makes sense to iterate over characters in a String, …

java string iterable
Python threading error - must be an iterable, not int

I'm trying to calculate rolling r-squared of regression among first column and other columns in a dataframe (first column and …

python multithreading regression python-multithreading iterable
what's the point of having both Iterator.forEachRemaining() and Iterable.forEach()?

and both of them get a Consumer as parameter. so if Java 8, is meant to avoid confusions, like it has …

java foreach iterator iterable
how to check isinstance of iterable in python?

consider this example? p = [1,2,3,4], (1,2,3), set([1,2,3])] instead of checking for each types like for x in p: if isinstance(x, list): …

python iterable isinstance
How to perform Stream functions on an Iterable?

In Java 8, the Stream class does not have any method to wrap a an Iterable. Instead, I am obtaining the …

java java-8 java-stream iterable spliterator
error TS2304: Build:Cannot find name 'Iterable' after upgrading to Angular 4

I am using Typescript 2.4.1 and have upgraded many packages in my project. Among them I upgraded Angular from 2 to 4.3.1. After …

angular typescript iterable
How does a Python for loop with iterable work?

What does for party in feed.entry signify and how does this for-loop actually work? for party in feed.entry: …

python for-loop iterable
Kotlin's Iterable and Sequence look exactly same. Why are two types required?

Both of these interfaces define only one method public operator fun iterator(): Iterator<T> Documentation says Sequence is …

kotlin iterable lazy-sequences