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.

Contains method for Iterable and Iterator?

Is there a simple method to check if an element is contained in an iterable or iterator, analogous to the …

java collections iterator iterable
Build a dictionary from successful regex matches in python

I'm pretty new to Python, and I'm trying to parse a file. Only certain lines in the file contain data …

python regex iterable dictionary-comprehension
The Iterator interface

I have a University assignement that requires me to implement an inner class which implements the Iterator interface. The iterator …

java iterator linked-list iterable
Is file object in python an iterable

I have a file "test.txt": this is 1st line this is 2nd line this is 3rd line the following …

python iterable
Python: map in place

I was wondering if there is a way to run map on something. The way map works is it takes …

python iterable map-function
class instance not iterable

In my func, I have: """ Iterates 300 times as attempts, each having an inner-loop to calculate the z of a neighboring …

python class iterable hill-climbing
Check if a variable type is iterable?

Is there any way to check if an arbitrary variable type is iterable? So to check if it has indexed …

c++ templates typetraits iterable
Chart of IEnumerable LINQ equivalents in Scala?

Possible Duplicate: LINQ analogues in Scala I am looking for chart which shows equivalents in Scala of LINQ methods for …

c# linq scala ienumerable iterable
Java: why does Collection.addAll can not accept Iterables?

I wonder why the Collection.addAll() method only accepts other Collections but not Iterables. Why is that? Any similar method …

java iterator iterable
Recommended way to implement Iterator<T> in Typescript, before ES6

I have a project that includes many classes that ideally would implement the Iterable<T> and/or Iterator&…

javascript typescript interface iterator iterable