Pythonic Iterators With Mootools

2012 Jun12
P

ython comes standard with an interesting module called, [itertools](http://http://docs.python.org/library/itertools.html), which provides a set of functions that make performing complex computations that revolve around iteration much easier. It is actually a invaluable set of tools to have at your disposal when you get comfortable with them. The module itself can work with anything that implements the [iterator](http://docs.python.org/glossary.html#term-iterator) interface. An iterator is an object wrapper around some sequence that exposes a method called next. When the next method is called, the iterator should return the next item in the sequence and throws a StopIteration exception when there is nothing left in the sequence. While JavaScript doesn't

Read More