GetEnumeratedObjectAt static method
Implementation
static Object GetEnumeratedObjectAt(Iterable objects, int index) {
int count = 0;
for (Object obj in objects as Iterable<Object>) {
if (count == index) {
return obj;
}
count++;
}
throw new RangeError.range(index, 0, count, "index",
"Strings.IterableDoesNotContainThatManyObject");
}