On Mar 6, 2006, at 8:40 AM, vmpn wrote:
The current iterator usage patern in documented as:
var it = iter(iterable);
try {
while (var o = it.next()) {
// use o
}
} catch (e) {
if (e != StopIteration) {
throw e;
}
// pass
}
That's how it is and
On Mar 6, 2006, at 11:35 AM, vmpn wrote:
For my education, if you do not mind, any advantages of the first form
over the second (when one is *not* implemented as the wrapper for the
other)? Just trying to see if I can learn a new javascript trick. :)
The former is how Python does it, is